Skip to content

Commit 48cc799

Browse files
jamienewcombmschristensen
authored andcommitted
update model name to claude-sonnet-4-6 across docs and demos
1 parent eed5e51 commit 48cc799

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export async function POST(req: Request) {
120120
const newMsgs = messages.map((m) => m.message);
121121

122122
const result = streamText({
123-
model: anthropic('claude-sonnet-4-20250514'),
123+
model: anthropic('claude-sonnet-4-6'),
124124
system: 'You are a helpful assistant.',
125125
messages: await convertToModelMessages([...historyMsgs, ...newMsgs]),
126126
abortSignal: turn.abortSignal,
@@ -315,7 +315,7 @@ await transport.cancel({ turnId: 'turn-abc' });
315315

316316
// Server: the turn's abortSignal fires automatically
317317
const result = streamText({
318-
model: anthropic('claude-sonnet-4-20250514'),
318+
model: anthropic('claude-sonnet-4-6'),
319319
messages,
320320
abortSignal: turn.abortSignal, // Aborted when client cancels
321321
});

demo/vercel/react/use-chat/src/app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export async function POST(req: Request) {
5252
const allMessages = [...historyMsgs, ...newMsgs];
5353

5454
const result = streamText({
55-
model: anthropic('claude-sonnet-4-20250514'),
55+
model: anthropic('claude-sonnet-4-6'),
5656
system: `You are a helpful assistant. When the user asks about weather, use the getWeather tool. If they don't specify a location, call getLocation first to get their coordinates, then call getWeather with a description of that location.`,
5757
messages: await convertToModelMessages(allMessages),
5858
tools,

demo/vercel/react/use-client-transport/src/app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export async function POST(req: Request) {
210210
const effectiveTools = disableApprovalForApprovedTools(toolApprovals);
211211

212212
const result = streamText({
213-
model: anthropic('claude-sonnet-4-20250514'),
213+
model: anthropic('claude-sonnet-4-6'),
214214
system: `You are a helpful assistant. When the user asks about weather, use the getWeather tool. If they don't specify a location, call getLocation first to get their coordinates, then call getWeather with a description of that location. When the user asks about a weather forecast or upcoming weather, use getWeatherForecast.`,
215215
messages: modelMessages,
216216
tools: effectiveTools,

docs/get-started/vercel-use-chat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export async function POST(req: Request) {
125125
const allMessages = [...(history ?? []).map((h) => h.message), ...messages.map((m) => m.message)];
126126

127127
const result = streamText({
128-
model: anthropic('claude-sonnet-4-20250514'),
128+
model: anthropic('claude-sonnet-4-6'),
129129
system: 'You are a helpful assistant.',
130130
messages: await convertToModelMessages(allMessages),
131131
abortSignal: turn.abortSignal,

0 commit comments

Comments
 (0)