Skip to content

Commit 47e0e23

Browse files
authored
tweak: set display 'summarized' by default for opus 4.7 thorugh messages api (anomalyco#22873)
1 parent bf4c107 commit 47e0e23

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

packages/opencode/src/provider/transform.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,9 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
594594
{
595595
thinking: {
596596
type: "adaptive",
597+
...(model.api.id.includes("opus-4-7") || model.api.id.includes("opus-4.7")
598+
? { display: "summarized" }
599+
: {}),
597600
},
598601
effort,
599602
},

packages/opencode/test/provider/transform.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2727,12 +2727,14 @@ describe("ProviderTransform.variants", () => {
27272727
expect(result.xhigh).toEqual({
27282728
thinking: {
27292729
type: "adaptive",
2730+
display: "summarized",
27302731
},
27312732
effort: "xhigh",
27322733
})
27332734
expect(result.max).toEqual({
27342735
thinking: {
27352736
type: "adaptive",
2737+
display: "summarized",
27362738
},
27372739
effort: "max",
27382740
})

0 commit comments

Comments
 (0)