You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,15 +36,13 @@
36
36
37
37
## Model Providers
38
38
39
-
This template uses the [Vercel AI Gateway](https://vercel.com/docs/ai-gateway) to access multiple AI models through a unified interface. The default configuration includes [xAI](https://x.ai) models (`grok-2-vision-1212`, `grok-3-mini`) routed through the gateway.
39
+
The chatbot uses [xAI](https://x.ai) Grok models directly through the AI SDK (`grok-2-vision-1212`, `grok-3-mini`). Set `XAI_API_KEY` in `.env.local` to authenticate requests.
40
40
41
-
### AI Gateway Authentication
41
+
### Optional: Vercel AI Gateway
42
42
43
-
**For Vercel deployments**: Authentication is handled automatically via OIDC tokens.
43
+
If you prefer routing traffic through the [Vercel AI Gateway](https://vercel.com/docs/ai-gateway) for logging or usage limits, provide `AI_GATEWAY_API_KEY`. Vercel deployments automatically handle authentication via OIDC tokens; self-hosted deployments must set the key manually.
44
44
45
-
**For non-Vercel deployments**: You need to provide an AI Gateway API key by setting the `AI_GATEWAY_API_KEY` environment variable in your `.env.local` file.
46
-
47
-
With the [AI SDK](https://ai-sdk.dev/docs/introduction), you can also switch to direct LLM providers like [OpenAI](https://openai.com), [Anthropic](https://anthropic.com), [Cohere](https://cohere.com/), and [many more](https://ai-sdk.dev/providers/ai-sdk-providers) with just a few lines of code.
45
+
With the [AI SDK](https://ai-sdk.dev/docs/introduction), you can also switch to other providers like [OpenAI](https://openai.com), [Anthropic](https://anthropic.com), [Cohere](https://cohere.com/), and [many more](https://ai-sdk.dev/providers/ai-sdk-providers) with just a few lines of code.
0 commit comments