feat: support claude-opus-4-8 - #5177
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
WalkthroughThis PR extends Claude Opus 4.8 model support across the platform by adding model registrations, request conversion logic, thinking configuration, pricing ratios, and test coverage—following the same patterns previously implemented for Opus 4.7. ChangesClaude Opus 4.8 Model Support
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related issues
Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
Sync upstream QuantumNous/new-api 0c7aceb (clean cherry-pick). Add claude-opus-4-8 (+ -max/-xhigh/-high/-medium/-low/-thinking variants) to the claude model list, aws model-id + cross-region maps, vertex claude model map, and default model/cache ratios; extend the opus-4-6/4-7 adaptive-thinking and effort-suffix handling in relay-claude.go and claude_handler.go to also match opus-4-8 (which likewise rejects non-default temperature/top_p/top_k and thinking.type=enabled).
(cherry picked from commit 0c7aceb)
Important
📝 Description
This PR adds support for
claude-opus-4-8by mirroring the existingclaude-opus-4-7adaptation.Opus 4.8 uses the same request behavior as Opus 4.7, with only the model name changed. The update adds the Opus 4.8 base model and suffix variants to the Claude model list, reuses the adaptive thinking conversion for effort suffixes and
-thinking, and adds matching AWS Bedrock, Vertex, model ratio, and cache ratio entries.🚀 Type of change
🔗 Related Issue
✅ Checklist
📸 Proof of Work
Summary by CodeRabbit