Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions packages/core/src/model-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ const ALL_MODEL_DEFINITIONS: OpencodeModelDefinitions = {
limit: { context: 250000, output: 64000 },
modalities: DEFAULT_MODALITIES,
variants: {
low: { disabled: true },
high: { disabled: true },
low: { thinkingConfig: { thinkingBudget: 8192 } },
medium: { thinkingConfig: { thinkingBudget: 16384 } },
high: { thinkingConfig: { thinkingBudget: 32768 } },
},
},
),
Expand All @@ -151,8 +152,9 @@ const ALL_MODEL_DEFINITIONS: OpencodeModelDefinitions = {
limit: { context: 250000, output: 64000 },
modalities: DEFAULT_MODALITIES,
variants: {
low: { disabled: true },
high: { disabled: true },
low: { thinkingConfig: { thinkingBudget: 8192 } },
medium: { thinkingConfig: { thinkingBudget: 16384 } },
high: { thinkingConfig: { thinkingBudget: 32768 } },
},
},
),
Expand Down
12 changes: 7 additions & 5 deletions packages/opencode/src/plugin/config/models.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,17 @@ describe('OPENCODE_MODEL_DEFINITIONS', () => {
})
})

it('disables unsupported automatic Claude budget variants', () => {
it('defines Claude thinking budget variants', () => {
expect(getModel('antigravity-claude-opus-4-6-thinking').variants).toEqual({
low: { disabled: true },
high: { disabled: true },
low: { thinkingConfig: { thinkingBudget: 8192 } },
medium: { thinkingConfig: { thinkingBudget: 16384 } },
high: { thinkingConfig: { thinkingBudget: 32768 } },
})
expect(getModel('antigravity-claude-sonnet-4-6-thinking').variants).toEqual(
{
low: { disabled: true },
high: { disabled: true },
low: { thinkingConfig: { thinkingBudget: 8192 } },
medium: { thinkingConfig: { thinkingBudget: 16384 } },
high: { thinkingConfig: { thinkingBudget: 32768 } },
},
)
})
Expand Down