tweak: set display 'summarized' by default for opus 4.7 thorugh messages api (#22873)

This commit is contained in:
Aiden Cline
2026-04-16 14:12:43 -05:00
committed by GitHub
parent bf4c107829
commit 47e0e2342c
2 changed files with 5 additions and 0 deletions

View File

@@ -594,6 +594,9 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
{
thinking: {
type: "adaptive",
...(model.api.id.includes("opus-4-7") || model.api.id.includes("opus-4.7")
? { display: "summarized" }
: {}),
},
effort,
},

View File

@@ -2727,12 +2727,14 @@ describe("ProviderTransform.variants", () => {
expect(result.xhigh).toEqual({
thinking: {
type: "adaptive",
display: "summarized",
},
effort: "xhigh",
})
expect(result.max).toEqual({
thinking: {
type: "adaptive",
display: "summarized",
},
effort: "max",
})