Uh oh!
There was an error while loading. Please reload this page.
fix(runtime): bound Anthropic-compatible output limits - #1213
Merged
Conversation
Astro-Hanforce-pushed
the
fix/runtime-bound-model-output-limits
branch
from
July 18, 2026 16:26
ca4ba7c to
f7df3f3CompareAstro-Hanforce-pushed
the
fix/runtime-bound-model-output-limits
branch
from
July 18, 2026 16:36
f7df3f3 to
7a430b2CompareUh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 18, 2026
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 freeto 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.
Summary
max_tokens: 4096kimi-for-codingsendsmax_tokens: 32768instead of33792This is a focused follow-up to #1209. Applying catalog maximums to every provider caused models such as
mistral-large-latest, whose advertised output maximum equals its full context window, to receive an unsafe per-request generation limit. Gating at the final request protocol keeps the explicit limit where the Anthropic SDK requires one, including Kimi K3, SDK-unknown MiniMax models, and account-routed GitHub Copilot Anthropic models.Verification
npm run build && node --test dist/__tests__/ai-sdk-backend.test.js dist/__tests__/computer-use-provider-protocol.test.js dist/__tests__/model-factory-thinking.test.js— 197 passed, 0 failednpm testinpackages/runtime— 2149 passed, 7 skipped, 0 failedmax_tokens: 131072,kimi-for-codingsendsmax_tokens: 32768after the SDK accounts for its 1024-token fixed thinking budget, MiniMax-M3 preservesmax_tokens: 128000, and an SDK-unknown GitHub Copilot Anthropic model honors its account-advertisedmax_tokens: 128000