Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/chat-agent-model-id.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@trigger.dev/sdk": patch
---

The chat agent skills shipped in the SDK and the dashboard's new-project chat agent snippet now use `claude-sonnet-5-5` instead of `claude-sonnet-4-5`. Anthropic retires `claude-sonnet-4-5` on November 30, 2026; agents generated from these templates would fail on the first turn after that date.
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ export const myChat = chat.agent({
run: async ({ messages, signal }) => {
return streamText({
...chat.toStreamTextOptions(),
model: anthropic("claude-sonnet-4-5"),
model: anthropic("claude-sonnet-5-5"),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Missing bundled pricing for Sonnet 5.5

The default prices cover Sonnet 4.5 but not Sonnet 5.5. Span enrichment skips usage rows when neither the pricing registry nor the provider supplies a cost.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

messages,
abortSignal: signal,
stopWhen: stepCountIs(15),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const myChat = chat.agent({
// `streamText` below is the SDK's, from the run argument. See "Common mistakes".
run: async ({ messages, signal, streamText }) =>
streamText({
model: anthropic("claude-sonnet-4-5"),
model: anthropic("claude-sonnet-5-5"),
messages,
abortSignal: signal,
stopWhen: stepCountIs(15),
Expand Down Expand Up @@ -136,7 +136,7 @@ export const agentChat = chat.agent({
// `chat.toStreamTextOptions()` is the alternative when threading it down is impractical.
async function runAgentLoop(messages: ModelMessage[], streamText: ChatStreamText) {
const result = streamText({
model: anthropic("claude-sonnet-4-5"),
model: anthropic("claude-sonnet-5-5"),
messages,
});
await chat.pipe(result); // works from anywhere in the task
Expand Down Expand Up @@ -165,7 +165,7 @@ export const myChat = chat.agent({
tools, // so toModelOutput survives across turns
run: async ({ messages, tools, signal, streamText }) =>
streamText({
model: anthropic("claude-sonnet-4-5"),
model: anthropic("claude-sonnet-5-5"),
messages,
tools, // same set, handed back typed
abortSignal: signal,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ export const myChat = chat.agent({
}
},
run: async ({ messages, signal, streamText }) =>
streamText({ model: anthropic("claude-sonnet-4-5"), messages, abortSignal: signal }),
streamText({ model: anthropic("claude-sonnet-5-5"), messages, abortSignal: signal }),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 Head Start examples use different models

Pairing the examples for my-chat sends the first step to Sonnet 4.6 and the continuation to Sonnet 5.5. The Head Start guide requires matching models when replaying thinking blocks.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

});
```

Expand Down