@@ -50,7 +50,7 @@ export const myChat = chat.agent({
5050 },
5151 run : async ({ messages , signal }) => {
5252 return streamText ({
53- model: anthropic (" claude-sonnet-4-5 " ),
53+ model: anthropic (" claude-sonnet-4-6 " ),
5454 // Caches the system block with a 5-minute breakpoint.
5555 ... chat .toStreamTextOptions ({ cacheControl: { type: " ephemeral" } }),
5656 messages ,
@@ -64,7 +64,7 @@ export const myChat = chat.agent({
6464
6565``` ts /trigger/chat.ts
6666return streamText ({
67- model: anthropic (" claude-sonnet-4-5 " ),
67+ model: anthropic (" claude-sonnet-4-6 " ),
6868 ... chat .toStreamTextOptions ({
6969 systemProviderOptions: { anthropic: { cacheControl: { type: " ephemeral" } } },
7070 }),
@@ -83,7 +83,7 @@ onChatStart: async () => {
8383},
8484run : async ({ messages , signal }) => {
8585 return streamText ({
86- model: anthropic (" claude-sonnet-4-5 " ),
86+ model: anthropic (" claude-sonnet-4-6 " ),
8787 ... chat .toStreamTextOptions (), // already cached
8888 messages ,
8989 abortSignal: signal ,
@@ -120,7 +120,7 @@ export const myChat = chat.agent({
120120 },
121121 run : async ({ messages , signal }) => {
122122 return streamText ({
123- model: anthropic (" claude-sonnet-4-5 " ),
123+ model: anthropic (" claude-sonnet-4-6 " ),
124124 ... chat .toStreamTextOptions ({ cacheControl: { type: " ephemeral" } }),
125125 messages ,
126126 abortSignal: signal ,
@@ -172,7 +172,7 @@ run: async ({ messages, signal, previousTurnUsage }) => {
172172 console .log (" cache write" , previousTurnUsage ?.inputTokenDetails ?.cacheWriteTokens );
173173
174174 return streamText ({
175- model: anthropic (" claude-sonnet-4-5 " ),
175+ model: anthropic (" claude-sonnet-4-6 " ),
176176 ... chat .toStreamTextOptions ({ cacheControl: { type: " ephemeral" } }),
177177 messages ,
178178 abortSignal: signal ,
0 commit comments