SIGN IN SIGN UP

CRS-自建Claude Code镜像,一站式开源中转服务,让 Claude、OpenAI、Gemini、Droid 订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

10094 0 1 JavaScript

fix: Bedrock thinking 模式下 max_tokens 被错误限制为 4096

当 thinking 启用时,max_tokens 必须大于 thinking.budget_tokens,
但 _convertToBedrockFormat 强制将 max_tokens 限制为 4096,
导致 budget_tokens > 4096 时 Bedrock 报验证错误。

修复:thinking 启用时不限制 max_tokens,直接使用请求原始值。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
J
juenjunli committed
552efdefbd523fb60af5250e8725c1ac9c2c934a
Parent: 74af576