Repository navigation
feat(anthropic): add extended thinking support - #3088
Conversation
Claude Code requests with thinking.type enabled against Haiku 4.5 were rejected with a misleading 'use thinking.type.adaptive' 400 because the Haiku 4.5 catalog entries were missing reasoning flags, even though the model supports budget-based extended thinking. - add reasoning, reasoningEfforts, and reasoningMaxTokens to all Haiku 4.5 provider mappings (incl. free and dated variants) - only suggest adaptive thinking in the mirrored Anthropic 400 when the model actually has an adaptive mapping; otherwise say thinking is unsupported Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013SLMuEDDJpAKkfzwkk7xev
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughClaude Haiku 4.5 provider mappings now declare reasoning capabilities and effort limits. Gateway validation uses those mappings to tailor errors when ChangesAnthropic reasoning support
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Adds extended thinking (reasoning) capability support to six Anthropic Claude models and improves error messaging when reasoning features are requested on unsupported models.
Changes
Model Configuration Updates
Added reasoning support to the following Anthropic models:
For each model, added three new capability flags:
reasoning: true- enables extended thinking supportreasoningEfforts: ["low", "medium", "high", "xhigh", "max"]- supported effort levelsreasoningMaxTokens: true- allows configuring max tokens for reasoningError Message Improvement
apps/gateway/src/chat/chat.tsto provide context-aware error messages when reasoning is requested:thinking.type.adaptivewithoutput_config.efforthttps://claude.ai/code/session_013SLMuEDDJpAKkfzwkk7xev
Summary by CodeRabbit
New Features
Bug Fixes