feat: add Opus [1M] model option to model selector#612
feat: add Opus [1M] model option to model selector#612gumab wants to merge 1 commit intositeboon:mainfrom
Conversation
|
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 (3)
✅ Files skipped from review due to trivial changes (3)
📝 WalkthroughWalkthroughAdded a new Claude model option Changes
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 |
Adds opus[1m] to the Claude model options alongside the existing sonnet[1m], allowing users to select the Opus model with 1M context window. Closes siteboon#579 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
44bdea5 to
3938daf
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@shared/modelConstants.js`:
- Line 21: The server-side "valid models" documentation and validation must be
updated to include the new opus[1m] model; locate the server-side places that
enumerate or comment valid models (search for constants or arrays like
VALID_MODELS / SUPPORTED_MODELS or functions named validateModel,
getSupportedModels, or model-checking middleware and the inline "valid models"
comment blocks) and add the opus[1m] entry (or its string "opus[1m]") to those
lists/comments and ensure any validation logic that filters/accepts models
recognizes the new string so runtime validation and docs stay in sync.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: d3bfbfa5-4f66-4e6b-8420-e54e4ffef880
📒 Files selected for processing (1)
shared/modelConstants.js
|
Completed |
Summary
opus[1m]toCLAUDE_MODELS.OPTIONSinshared/modelConstants.js, alongside the existingsonnet[1m]entryCloses #579
Test plan
Opus [1M]appears in the model selector dropdownOpus [1M]correctly passesopus[1m]to the Claude SDK🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Documentation