Skip to content

fix(agy): override minimal variant to bypass M16 budget:0 rejection - #32

Merged
anthonyhaussman merged 1 commit into
mainfrom
fix/minimal-variant-m16-budget
Jul 28, 2026
Merged

fix(agy): override minimal variant to bypass M16 budget:0 rejection#32
anthonyhaussman merged 1 commit into
mainfrom
fix/minimal-variant-m16-budget

Conversation

@anthonyhaussman

Copy link
Copy Markdown
Owner

opencode injects a 'minimal' variant with thinkingLevel:'minimal' as the first small/title-agent option.
plugin's thinking.ts maps MINIMAL to thinkingBudget:0, which M16 backends reject as INVALID_ARGUMENT.

Declaring our own minimal variant with explicit thinkingBudget:1000 overrides opencode's auto-injected one via mergeDeep and stays within M16's declared cap.

opencode injects a 'minimal' variant with thinkingLevel:'minimal' as the first small/title-agent option. plugin's thinking.ts maps MINIMAL to thinkingBudget:0, which M16 backends reject as INVALID_ARGUMENT. Declaring our own minimal variant with explicit thinkingBudget:1000 overrides opencode's auto-injected one via mergeDeep and stays within M16's declared cap.

Assisted-by: GLM 5.2
@anthonyhaussman anthonyhaussman self-assigned this Jul 28, 2026
@anthonyhaussman
anthonyhaussman marked this pull request as ready for review July 28, 2026 14:41
@anthonyhaussman
anthonyhaussman merged commit 7ec23e5 into main Jul 28, 2026
2 checks passed
@anthonyhaussman
anthonyhaussman deleted the fix/minimal-variant-m16-budget branch July 28, 2026 14:42
This was referenced Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant