Skip to content

Commit 28fd5a5

Browse files
gr2mt-mdo
andauthored
Backport: README updates and tags (v6.0) (#13653)
Backport of README updates and tag changes from `main` to `release-v6.0`: - #13636: Update model names in README (claude-opus-4.5 -> claude-opus-4.6, gpt-5 -> gpt-5.4, etc.), remove duplicate code example, reorder and add keywords to package.json - #13651: Add changeset for the README updates --------- Co-authored-by: Tmo <thibault.mirandadeoliveira@vercel.com>
1 parent f94277a commit 28fd5a5

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

.changeset/two-pens-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'ai': patch
3+
---
4+
5+
README updates

packages/ai/README.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ By default, the AI SDK uses the [Vercel AI Gateway](https://vercel.com/docs/ai-g
3030

3131
```ts
3232
const result = await generateText({
33-
model: 'anthropic/claude-opus-4.5', // or 'openai/gpt-5.4', 'google/gemini-3-flash', etc.
33+
model: 'anthropic/claude-opus-4.6', // or 'openai/gpt-5.4', 'google/gemini-3-flash', etc.
3434
prompt: 'Hello!',
3535
});
3636
```
@@ -45,7 +45,7 @@ npm install @ai-sdk/openai @ai-sdk/anthropic @ai-sdk/google
4545
import { anthropic } from '@ai-sdk/anthropic';
4646

4747
const result = await generateText({
48-
model: anthropic('claude-opus-4-5-20250414'), // or openai('gpt-5.4'), google('gemini-3-flash'), etc.
48+
model: anthropic('claude-opus-4-6'), // or openai('gpt-5.4'), google('gemini-3-flash'), etc.
4949
prompt: 'Hello!',
5050
});
5151
```
@@ -58,17 +58,7 @@ const result = await generateText({
5858
import { generateText } from 'ai';
5959

6060
const { text } = await generateText({
61-
model: 'openai/gpt-5', // use Vercel AI Gateway
62-
prompt: 'What is an agent?',
63-
});
64-
```
65-
66-
```ts
67-
import { generateText } from 'ai';
68-
import { openai } from '@ai-sdk/openai';
69-
70-
const { text } = await generateText({
71-
model: openai('gpt-5'), // use OpenAI Responses API
61+
model: 'openai/gpt-5.4', // use Vercel AI Gateway
7262
prompt: 'What is an agent?',
7363
});
7464
```
@@ -80,7 +70,7 @@ import { generateText, Output } from 'ai';
8070
import { z } from 'zod';
8171

8272
const { output } = await generateText({
83-
model: 'openai/gpt-5',
73+
model: 'openai/gpt-5.4',
8474
output: Output.object({
8575
schema: z.object({
8676
recipe: z.object({
@@ -102,7 +92,7 @@ const { output } = await generateText({
10292
import { ToolLoopAgent } from 'ai';
10393

10494
const sandboxAgent = new ToolLoopAgent({
105-
model: 'openai/gpt-5',
95+
model: 'openai/gpt-5.4',
10696
system: 'You are an agent with access to a shell environment.',
10797
tools: {
10898
shell: openai.tools.localShell({
@@ -134,7 +124,7 @@ import { openai } from '@ai-sdk/openai';
134124
import { ToolLoopAgent, InferAgentUIMessage } from 'ai';
135125

136126
export const imageGenerationAgent = new ToolLoopAgent({
137-
model: openai('gpt-5'),
127+
model: 'openai/gpt-5.4',
138128
tools: {
139129
generateImage: openai.tools.imageGeneration({
140130
partialImages: 3,

packages/ai/package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,25 @@
100100
"ai",
101101
"vercel",
102102
"sdk",
103+
"llm",
103104
"mcp",
104105
"tool-calling",
105106
"tools",
106107
"structured-output",
107108
"agent",
108109
"agentic",
109110
"generative",
111+
"genai",
110112
"chatbot",
111113
"prompt",
112114
"inference",
113-
"llm",
114115
"language-model",
115-
"streaming"
116+
"streaming",
117+
"openai",
118+
"anthropic",
119+
"claude",
120+
"gemini",
121+
"xai",
122+
"grok"
116123
]
117124
}

0 commit comments

Comments
 (0)