tweak: set display 'summarized' by default for opus 4.7 thorugh messages api (#22873)
This commit is contained in:
@@ -594,6 +594,9 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
|
|||||||
{
|
{
|
||||||
thinking: {
|
thinking: {
|
||||||
type: "adaptive",
|
type: "adaptive",
|
||||||
|
...(model.api.id.includes("opus-4-7") || model.api.id.includes("opus-4.7")
|
||||||
|
? { display: "summarized" }
|
||||||
|
: {}),
|
||||||
},
|
},
|
||||||
effort,
|
effort,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2727,12 +2727,14 @@ describe("ProviderTransform.variants", () => {
|
|||||||
expect(result.xhigh).toEqual({
|
expect(result.xhigh).toEqual({
|
||||||
thinking: {
|
thinking: {
|
||||||
type: "adaptive",
|
type: "adaptive",
|
||||||
|
display: "summarized",
|
||||||
},
|
},
|
||||||
effort: "xhigh",
|
effort: "xhigh",
|
||||||
})
|
})
|
||||||
expect(result.max).toEqual({
|
expect(result.max).toEqual({
|
||||||
thinking: {
|
thinking: {
|
||||||
type: "adaptive",
|
type: "adaptive",
|
||||||
|
display: "summarized",
|
||||||
},
|
},
|
||||||
effort: "max",
|
effort: "max",
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user