[PR #2056] fix: calculate max output tokens based on budget thinking tokens #10175

Closed
opened 2026-02-16 18:14:47 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2056

State: closed
Merged: Yes


this is just a proposal to make the process of enabling reasoning on Anthropic models not a pita.

the current implementation can cause max tokens errors when budgetTokens is set, forcing users to debug token limits, etc.

this change fixes that by adjusting the max output tokens automatically.

closes #2055

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2056 **State:** closed **Merged:** Yes --- this is just a proposal to make the process of enabling reasoning on Anthropic models not a pita. the current implementation can cause max tokens errors when `budgetTokens` is set, forcing users to debug token limits, etc. this change fixes that by adjusting the max output tokens automatically. closes #2055
yindo added the pull-request label 2026-02-16 18:14:47 -05:00
yindo closed this issue 2026-02-16 18:14:47 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10175