|
|
||
|---|---|---|
| .. | ||
| anthropic | ||
| core | ||
| mistral | ||
| openai | ||
| prompts | ||
| react | ||
| rsc | ||
| shared | ||
| solid | ||
| spec | ||
| streams | ||
| svelte | ||
| tests | ||
| vue | ||
| .eslintrc.js | ||
| .gitignore | ||
| .npmignore | ||
| .npmrc | ||
| CHANGELOG.md | ||
| README.md | ||
| package.json | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| turbo.json | ||
| vitest.edge.config.js | ||
| vitest.node.config.js | ||
| vitest.ui.react.config.js | ||
| vitest.ui.solid.config.js | ||
| vitest.ui.vue.config.js | ||
README.md
Vercel AI SDK
The Vercel AI SDK is a library for building AI-powered streaming text and chat UIs.
Features
- React, Svelte, Vue and Solid helpers for streaming text responses and building chat and completion UIs
- React Server Components API for streaming Generative UI
- First-class support for OpenAI, Anthropic, Mistral, Perplexity, AWS Bedrock, Azure, Google Gemini, Hugging Face, Fireworks, Cohere, LangChain, Replicate, Ollama, and more.
- Node.js, Serverless, and Edge Runtime support
- Lifecycle callbacks for saving completed streaming responses to a database (in the same request)
Installation
pnpm install ai
View the full documentation and examples on sdk.vercel.ai/docs.
Authors
This library is created by Vercel and Next.js team members, with contributions from:
- Jared Palmer (@jaredpalmer) - Vercel
- Shu Ding (@shuding_) - Vercel
- Max Leiter (@max_leiter) - Vercel
- Malte Ubl (@cramforce) - Vercel
- Justin Ridgewell (@jridgewell)
Related: Deploy your own Next.js AI Chatbot
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 or click the button below to deploy your own to Vercel.