Skip to content

fix: raise MAX_TOKENS_LIMIT default from 4096 to 16384 - #5

Closed
opencolin wants to merge 1 commit into
mainfrom
bump-max-tokens-default
Closed

fix: raise MAX_TOKENS_LIMIT default from 4096 to 16384#5
opencolin wants to merge 1 commit into
mainfrom
bump-max-tokens-default

Conversation

@opencolin

Copy link
Copy Markdown
Owner

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.

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>
@opencolin

Copy link
Copy Markdown
Owner Author

Closing — this was a staging branch; the change is now tracked in the corresponding PR against KiranChilledOut/claude-code-proxy.

@opencolin opencolin closed this May 1, 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