|
23 | 23 | - [AI SDK](https://sdk.vercel.ai/docs)
|
24 | 24 | - Unified API for generating text, structured objects, and tool calls with LLMs
|
25 | 25 | - Hooks for building dynamic chat and generative user interfaces
|
26 |
| - - Supports OpenAI (default), Anthropic, Cohere, and other model providers |
| 26 | + - Supports xAI (default), OpenAI, Fireworks, and other model providers |
27 | 27 | - [shadcn/ui](https://ui.shadcn.com)
|
28 | 28 | - Styling with [Tailwind CSS](https://tailwindcss.com)
|
29 | 29 | - Component primitives from [Radix UI](https://radix-ui.com) for accessibility and flexibility
|
|
35 | 35 |
|
36 | 36 | ## Model Providers
|
37 | 37 |
|
38 |
| -This template ships with OpenAI `gpt-4o` as the default. However, with the [AI SDK](https://sdk.vercel.ai/docs), you can switch LLM providers to [OpenAI](https://openai.com), [Anthropic](https://anthropic.com), [Cohere](https://cohere.com/), and [many more](https://sdk.vercel.ai/providers/ai-sdk-providers) with just a few lines of code. |
| 38 | +This template ships with [xAI](https://x.ai) `grok-2-1212` as the default chat model. However, with the [AI SDK](https://sdk.vercel.ai/docs), you can switch LLM providers to [OpenAI](https://openai.com), [Anthropic](https://anthropic.com), [Cohere](https://cohere.com/), and [many more](https://sdk.vercel.ai/providers/ai-sdk-providers) with just a few lines of code. |
39 | 39 |
|
40 | 40 | ## Deploy Your Own
|
41 | 41 |
|
42 | 42 | You can deploy your own version of the Next.js AI Chatbot to Vercel with one click:
|
43 | 43 |
|
44 |
| -[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot&env=AUTH_SECRET,OPENAI_API_KEY&envDescription=Learn%20more%20about%20how%20to%20get%20the%20API%20Keys%20for%20the%20application&envLink=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot%2Fblob%2Fmain%2F.env.example&demo-title=AI%20Chatbot&demo-description=An%20Open-Source%20AI%20Chatbot%20Template%20Built%20With%20Next.js%20and%20the%20AI%20SDK%20by%20Vercel.&demo-url=https%3A%2F%2Fchat.vercel.ai&stores=[{%22type%22:%22postgres%22},{%22type%22:%22blob%22}]) |
| 44 | +[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot&env=AUTH_SECRET,OPENAI_API_KEY,XAI_API_KEY,FIREWORKS_API_KEY&envDescription=Learn%20more%20about%20how%20to%20get%20the%20API%20Keys%20for%20the%20application&envLink=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot%2Fblob%2Fmain%2F.env.example&demo-title=AI%20Chatbot&demo-description=An%20Open-Source%20AI%20Chatbot%20Template%20Built%20With%20Next.js%20and%20the%20AI%20SDK%20by%20Vercel.&demo-url=https%3A%2F%2Fchat.vercel.ai&stores=[{%22type%22:%22postgres%22},{%22type%22:%22blob%22}]) |
45 | 45 |
|
46 | 46 | ## Running locally
|
47 | 47 |
|
48 | 48 | You will need to use the environment variables [defined in `.env.example`](.env.example) to run Next.js AI Chatbot. It's recommended you use [Vercel Environment Variables](https://vercel.com/docs/projects/environment-variables) for this, but a `.env` file is all that is necessary.
|
49 | 49 |
|
50 |
| -> Note: You should not commit your `.env` file or it will expose secrets that will allow others to control access to your various OpenAI and authentication provider accounts. |
| 50 | +> Note: You should not commit your `.env` file or it will expose secrets that will allow others to control access to your various AI and authentication provider accounts. |
51 | 51 |
|
52 | 52 | 1. Install Vercel CLI: `npm i -g vercel`
|
53 | 53 | 2. Link local instance with Vercel and GitHub accounts (creates `.vercel` directory): `vercel link`
|
|
0 commit comments