Skip to content

Commit 57fd9a0

Browse files
committed
feat(providers): offer send_user_message for Opus 5.5 and Fable 5/5.1 on all Claude backends
The previous commit set ModelInfo.summarizesTextBetweenToolCalls only in Zoo's Bedrock backend. The behaviour comes from the Anthropic API itself, so it applies whichever backend serves these models: text the model writes between tool calls comes back as a progress-update thinking block, never as a text block, and no thinking.display value returns it verbatim. The flag is now also set for: - Anthropic (direct) and Vertex: the claude-opus-5-5, claude-fable-5-1 and claude-fable-5 catalog entries. - OpenRouter, Requesty and Vercel AI Gateway: the existing per-model overrides for anthropic/claude-opus-5-5, anthropic/claude-fable-5.1 and anthropic/claude-fable-5. So these backends now offer send_user_message and add the system-prompt rule for these models. Unlike Bedrock, these backends don't request display "updates", so there the in-between text arrives empty (or, with reasoning on, mixed into the "summarized" reasoning). It reaches the user verbatim in neither case, which is what the flag means. Making them show the progress updates is left for a separate change. Not checked live on these backends; the repro from the previous commit was run on Bedrock only. Mythos 5.1 and Sonnet 5.5, which Anthropic's docs also list as writing progress updates, have no catalog entries outside Bedrock's pattern match, so they are not covered here. - https://platform.claude.com/docs/en/build-with-claude/thinking#progress-updates - https://platform.claude.com/docs/en/models/opus-5-5/migration-guide#text-between-tool-calls See also Zoo-Code-Org#1820. Assisted-by: Claude Opus 5.5 with Zoo Code
1 parent 0843a07 commit 57fd9a0

10 files changed

Lines changed: 28 additions & 0 deletions

File tree

‎packages/types/src/providers/anthropic.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ export const anthropicModels = {
176176
// Opus 5.5 always uses adaptive thinking and rejects manual budget_tokens.
177177
supportsReasoningBinary: true,
178178
supportsTemperature: false,
179+
summarizesTextBetweenToolCalls: true,
179180
description:
180181
"Claude Opus 5.5 is Anthropic's most capable model for complex agentic coding and enterprise work.",
181182
},
@@ -193,6 +194,7 @@ export const anthropicModels = {
193194
supportsReasoningBudget: true,
194195
supportsReasoningBinary: true,
195196
supportsTemperature: false,
197+
summarizesTextBetweenToolCalls: true,
196198
description:
197199
"Claude Fable 5.1 extends Fable 5 with stronger long-running agentic coding, multistep research, and document work.",
198200
},
@@ -210,6 +212,7 @@ export const anthropicModels = {
210212
supportsReasoningBudget: true,
211213
supportsReasoningBinary: true,
212214
supportsTemperature: false,
215+
summarizesTextBetweenToolCalls: true,
213216
description:
214217
"Claude Fable 5 is Anthropic's most capable widely released model for the most demanding reasoning and long-horizon agentic work.",
215218
},

‎packages/types/src/providers/vertex.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ export const vertexModels = {
506506
supportsReasoningBinary: true,
507507
supportsMaxTokens: true,
508508
supportsTemperature: false,
509+
summarizesTextBetweenToolCalls: true,
509510
description:
510511
"Claude Opus 5.5 is Anthropic's most capable model for complex agentic coding and enterprise work.",
511512
},
@@ -522,6 +523,7 @@ export const vertexModels = {
522523
supportsReasoningBinary: true,
523524
supportsMaxTokens: true,
524525
supportsTemperature: false,
526+
summarizesTextBetweenToolCalls: true,
525527
description:
526528
"Claude Fable 5.1 extends Fable 5 with stronger long-running agentic coding, multistep research, and document work.",
527529
},
@@ -538,6 +540,7 @@ export const vertexModels = {
538540
supportsReasoningBinary: true,
539541
supportsMaxTokens: true,
540542
supportsTemperature: false,
543+
summarizesTextBetweenToolCalls: true,
541544
description:
542545
"Claude Fable 5 is Anthropic's most capable widely released model for the most demanding reasoning and long-horizon agentic work.",
543546
},

‎src/api/providers/__tests__/anthropic-vertex.spec.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,7 @@ describe("VertexHandler", () => {
10541054
const model = handler.getModel()
10551055
expect(model.id).toBe("claude-opus-5-5")
10561056
expect(model.info.maxTokens).toBe(128_000)
1057+
expect(model.info.summarizesTextBetweenToolCalls).toBe(true)
10571058
expect(model.info.contextWindow).toBe(1_000_000)
10581059
expect(model.info.inputPrice).toBe(4.0)
10591060
expect(model.info.outputPrice).toBe(20.0)

‎src/api/providers/__tests__/anthropic.spec.ts‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,16 @@ describe("AnthropicHandler", () => {
743743
expect(model.reasoningBudget).toBeUndefined()
744744
})
745745

746+
it.each([
747+
["claude-fable-5", true],
748+
["claude-fable-5-1", true],
749+
["claude-opus-5", undefined],
750+
["claude-sonnet-5", undefined],
751+
])("flags whether %s returns text between tool calls only as a summary", (apiModelId, expected) => {
752+
const handler = new AnthropicHandler({ apiKey: "test-api-key", apiModelId })
753+
expect(handler.getModel().info.summarizesTextBetweenToolCalls).toBe(expected)
754+
})
755+
746756
it("should handle Claude Opus 5.5 model correctly", () => {
747757
const handler = new AnthropicHandler({
748758
apiKey: "test-api-key",
@@ -751,6 +761,7 @@ describe("AnthropicHandler", () => {
751761
const model = handler.getModel()
752762
expect(model.id).toBe("claude-opus-5-5")
753763
expect(model.info.maxTokens).toBe(128000)
764+
expect(model.info.summarizesTextBetweenToolCalls).toBe(true)
754765
expect(model.info.contextWindow).toBe(1000000)
755766
expect(model.info.inputPrice).toBe(4.0)
756767
expect(model.info.outputPrice).toBe(20.0)

‎src/api/providers/fetchers/__tests__/openrouter.spec.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ describe("OpenRouter API", () => {
498498
expect(result.maxTokens).toBe(128000)
499499
expect(result.contextWindow).toBe(1000000)
500500
expect(result.supportsTemperature).toBe(false)
501+
expect(result.summarizesTextBetweenToolCalls).toBe(true)
501502
expect(result.supportsReasoningBudget).toBe(true)
502503
expect(result.supportsReasoningBinary).toBe(true)
503504
})

‎src/api/providers/fetchers/__tests__/requesty.spec.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ describe("getRequestyModels", () => {
149149
expect(opus55.supportsReasoningBudget).toBe(true)
150150
expect(opus55.supportsReasoningBinary).toBe(true)
151151
expect(opus55.supportsTemperature).toBe(false)
152+
expect(opus55.summarizesTextBetweenToolCalls).toBe(true)
152153
})
153154

154155
it("does not apply Fable 5 overrides to other models", async () => {

‎src/api/providers/fetchers/__tests__/vercel-ai-gateway.spec.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ describe("Vercel AI Gateway Fetchers", () => {
348348
expect(result.maxTokens).toBe(128000)
349349
expect(result.contextWindow).toBe(1000000)
350350
expect(result.supportsTemperature).toBe(false)
351+
expect(result.summarizesTextBetweenToolCalls).toBe(true)
351352
})
352353

353354
it("detects vision-only models", () => {

‎src/api/providers/fetchers/openrouter.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,13 +286,15 @@ export const parseOpenRouterModel = ({
286286
modelInfo.supportsReasoningBudget = true
287287
modelInfo.supportsReasoningBinary = true
288288
modelInfo.supportsTemperature = false
289+
modelInfo.summarizesTextBetweenToolCalls = true
289290
}
290291

291292
// Set claude-fable-5 model to use the correct Anthropic configuration
292293
if (id === "anthropic/claude-fable-5") {
293294
modelInfo.maxTokens = anthropicModels["claude-fable-5"].maxTokens
294295
modelInfo.supportsReasoningBinary = true
295296
modelInfo.supportsTemperature = false
297+
modelInfo.summarizesTextBetweenToolCalls = true
296298
}
297299

298300
// Set claude-sonnet-5 model to use the correct Anthropic configuration
@@ -314,6 +316,7 @@ export const parseOpenRouterModel = ({
314316
modelInfo.maxTokens = anthropicModels["claude-opus-5-5"].maxTokens
315317
modelInfo.supportsReasoningBinary = true
316318
modelInfo.supportsTemperature = false
319+
modelInfo.summarizesTextBetweenToolCalls = true
317320
}
318321

319322
// Ensure correct reasoning handling for Claude Haiku 4.5 on OpenRouter

‎src/api/providers/fetchers/requesty.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export async function getRequestyModels(
5555
modelInfo.supportsReasoningBudget = true
5656
modelInfo.supportsReasoningBinary = true
5757
modelInfo.supportsTemperature = false
58+
modelInfo.summarizesTextBetweenToolCalls = true
5859
}
5960

6061
if (rawModel.id === "anthropic/claude-sonnet-5") {
@@ -73,6 +74,7 @@ export async function getRequestyModels(
7374
modelInfo.supportsReasoningBudget = true
7475
modelInfo.supportsReasoningBinary = true
7576
modelInfo.supportsTemperature = false
77+
modelInfo.summarizesTextBetweenToolCalls = true
7678
}
7779

7880
models[rawModel.id] = modelInfo

‎src/api/providers/fetchers/vercel-ai-gateway.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export const parseVercelAiGatewayModel = ({ id, model }: { id: string; model: Ve
134134

135135
if (id === "anthropic/claude-fable-5.1" || id === "anthropic/claude-fable-5") {
136136
modelInfo.supportsTemperature = false
137+
modelInfo.summarizesTextBetweenToolCalls = true
137138
}
138139

139140
if (id === "anthropic/claude-sonnet-5") {
@@ -146,6 +147,7 @@ export const parseVercelAiGatewayModel = ({ id, model }: { id: string; model: Ve
146147

147148
if (id === "anthropic/claude-opus-5-5") {
148149
modelInfo.supportsTemperature = false
150+
modelInfo.summarizesTextBetweenToolCalls = true
149151
}
150152

151153
return modelInfo

0 commit comments

Comments
 (0)