There was an error while loading. Please reload this page.
1 parent 0ebdf91 commit 9c7af72Copy full SHA for 9c7af72
1 file changed
apps/docs/content/docs/vercel-ai-frontend.mdx
@@ -58,7 +58,7 @@ Add `AI_GATEWAY_API_KEY` to your environment:
58
AI_GATEWAY_API_KEY=your_api_key_here
59
```
60
61
-Then use it with the AI SDK by specifying a model string e.g. `openai/gpt-4o`.
+Then use it with the AI SDK by specifying a model string e.g. `anthropic/claude-sonnet-4.5`.
62
63
## AI SDK
64
@@ -112,8 +112,9 @@ export async function POST(req: Request) {
112
const { messages } = await req.json();
113
114
const result = streamText({
115
- model: "openai/gpt-4o",
116
- messages,
+ model: "anthropic/claude-sonnet-4.5",
+ system: "You are a helpful assistant.",
117
+ messages: await convertToModelMessages(messages),
118
});
119
120
return result.toUIMessageStreamResponse();
0 commit comments