fix: raise MAX_TOKENS_LIMIT default from 4096 to 16384 - #5
Closed
opencolin wants to merge 1 commit into
Closed
Conversation
4096 is below what Claude Code requests for many turns (especially agentic tool-use loops), and reasoning-style Nebius models like Kimi-K2.5, DeepSeek-V3.2, GLM-5, and Qwen3 thinking variants burn a chunk of the budget on hidden reasoning before producing visible output. Empirically a 64-token request to Kimi-K2.5 returns empty text because the entire budget is consumed by reasoning; the default should leave headroom for both that and Claude Code's own usage. 16k is a conservative middle ground. Provider-specific caps still apply; users with tighter quotas can lower this. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Owner
Author
|
Closing — this was a staging branch; the change is now tracked in the corresponding PR against KiranChilledOut/claude-code-proxy. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
4096 is below what Claude Code requests for many turns (especially
agentic tool-use loops), and reasoning-style Nebius models like
Kimi-K2.5, DeepSeek-V3.2, GLM-5, and Qwen3 thinking variants burn a
chunk of the budget on hidden reasoning before producing visible
output. Empirically a 64-token request to Kimi-K2.5 returns empty
text because the entire budget is consumed by reasoning; the default
should leave headroom for both that and Claude Code's own usage.
16k is a conservative middle ground. Provider-specific caps still
apply; users with tighter quotas can lower this.