ai 0.0.0-e27b4ed4-20240419203611
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -0
- package/README.md +37 -0
- package/dist/index.d.mts +1770 -0
- package/dist/index.d.ts +1770 -0
- package/dist/index.js +2958 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2887 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +174 -0
- package/prompts/dist/index.d.mts +267 -0
- package/prompts/dist/index.d.ts +267 -0
- package/prompts/dist/index.js +178 -0
- package/prompts/dist/index.js.map +1 -0
- package/prompts/dist/index.mjs +146 -0
- package/prompts/dist/index.mjs.map +1 -0
- package/react/dist/index.d.mts +487 -0
- package/react/dist/index.d.ts +504 -0
- package/react/dist/index.js +1310 -0
- package/react/dist/index.js.map +1 -0
- package/react/dist/index.mjs +1271 -0
- package/react/dist/index.mjs.map +1 -0
- package/react/dist/index.server.d.mts +17 -0
- package/react/dist/index.server.d.ts +17 -0
- package/react/dist/index.server.js +50 -0
- package/react/dist/index.server.js.map +1 -0
- package/react/dist/index.server.mjs +23 -0
- package/react/dist/index.server.mjs.map +1 -0
- package/rsc/dist/index.d.ts +289 -0
- package/rsc/dist/index.mjs +18 -0
- package/rsc/dist/rsc-client.d.mts +1 -0
- package/rsc/dist/rsc-client.mjs +18 -0
- package/rsc/dist/rsc-client.mjs.map +1 -0
- package/rsc/dist/rsc-server.d.mts +225 -0
- package/rsc/dist/rsc-server.mjs +1246 -0
- package/rsc/dist/rsc-server.mjs.map +1 -0
- package/rsc/dist/rsc-shared.d.mts +94 -0
- package/rsc/dist/rsc-shared.mjs +346 -0
- package/rsc/dist/rsc-shared.mjs.map +1 -0
- package/solid/dist/index.d.mts +351 -0
- package/solid/dist/index.d.ts +351 -0
- package/solid/dist/index.js +1002 -0
- package/solid/dist/index.js.map +1 -0
- package/solid/dist/index.mjs +974 -0
- package/solid/dist/index.mjs.map +1 -0
- package/svelte/dist/index.d.mts +348 -0
- package/svelte/dist/index.d.ts +348 -0
- package/svelte/dist/index.js +1556 -0
- package/svelte/dist/index.js.map +1 -0
- package/svelte/dist/index.mjs +1528 -0
- package/svelte/dist/index.mjs.map +1 -0
- package/vue/dist/index.d.mts +345 -0
- package/vue/dist/index.d.ts +345 -0
- package/vue/dist/index.js +1002 -0
- package/vue/dist/index.js.map +1 -0
- package/vue/dist/index.mjs +964 -0
- package/vue/dist/index.mjs.map +1 -0
package/LICENSE
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
Copyright 2023 Vercel, Inc.
|
2
|
+
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
6
|
+
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
package/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# Vercel AI SDK
|
2
|
+
|
3
|
+
The Vercel AI SDK is **a library for building AI-powered streaming text and chat UIs**.
|
4
|
+
|
5
|
+
## Features
|
6
|
+
|
7
|
+
- React, Svelte, Vue and Solid helpers for streaming text responses and building chat and completion UIs
|
8
|
+
- React Server Components API for streaming [Generative UI](https://vercel.com/blog/ai-sdk-3-generative-ui)
|
9
|
+
- First-class support for [OpenAI](https://openai.com), [Anthropic](https://www.anthropic.com), [Mistral](https://mistral.ai), [Perplexity](https://perplexity.ai), [AWS Bedrock](https://aws.amazon.com/bedrock/), [Azure](https://ai.azure.com), [Google Gemini](https://ai.google.dev), [Hugging Face](https://huggingface.co), [Fireworks](https://app.fireworks.ai), [Cohere](https://cohere.com), [LangChain](https://js.langchain.com/docs), [Replicate](https://replicate.com), Ollama, and more.
|
10
|
+
- Node.js, Serverless, and [Edge Runtime](https://edge-runtime.vercel.app/) support
|
11
|
+
- Lifecycle callbacks for saving completed streaming responses to a database (in the same request)
|
12
|
+
|
13
|
+
## Installation
|
14
|
+
|
15
|
+
```sh
|
16
|
+
pnpm install ai
|
17
|
+
```
|
18
|
+
|
19
|
+
View the full documentation and examples on [sdk.vercel.ai/docs](https://sdk.vercel.ai/docs).
|
20
|
+
|
21
|
+
## Authors
|
22
|
+
|
23
|
+
This library is created by [Vercel](https://vercel.com) and [Next.js](https://nextjs.org) team members, with contributions from:
|
24
|
+
|
25
|
+
- Jared Palmer ([@jaredpalmer](https://twitter.com/jaredpalmer)) - [Vercel](https://vercel.com)
|
26
|
+
- Shu Ding ([@shuding\_](https://twitter.com/shuding_)) - [Vercel](https://vercel.com)
|
27
|
+
- Max Leiter ([@max_leiter](https://twitter.com/max_leiter)) - [Vercel](https://vercel.com)
|
28
|
+
- Malte Ubl ([@cramforce](https://twitter.com/cramforce)) - [Vercel](https://vercel.com)
|
29
|
+
- Justin Ridgewell ([@jridgewell](https://github.com/jridgewell))
|
30
|
+
|
31
|
+
[Contributors](https://github.com/vercel/ai/graphs/contributors)
|
32
|
+
|
33
|
+
## Related: Deploy your own Next.js AI Chatbot
|
34
|
+
|
35
|
+
If you're looking to for a full AI Chatbot application to jumpstart your AI journey, you should checkout [our sister OSS AI Chatbot project](https://github.com/vercel/ai-chatbot) or click the button below to deploy your own to [Vercel](https://vercel.com).
|
36
|
+
|
37
|
+
[](https://vercel.com/templates/Next.js/nextjs-ai-chatbot)
|