mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 03:16:35 +00:00
tweak: set display 'summarized' by default for opus 4.7 thorugh messages api (#22873)
This commit is contained in:
parent
bf4c107829
commit
47e0e2342c
2 changed files with 5 additions and 0 deletions
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue