fix(opencode): default display summarized for gateway opus 4.7+ adaptive reasoning (#30027)
This commit is contained in:
@@ -697,6 +697,10 @@ export function variants(model: Provider.Model): Record<string, Record<string, a
|
||||
{
|
||||
thinking: {
|
||||
type: "adaptive",
|
||||
// Opus 4.7+ flips the API default for `display` to "omitted", which
|
||||
// returns empty thinking blocks. Force "summarized" so summaries
|
||||
// survive (4.6/Sonnet 4.6 already default to "summarized").
|
||||
...(adaptiveOpus ? { display: "summarized" } : {}),
|
||||
},
|
||||
effort,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user