chore: bump claude-opus to 4-7 - #1482
Conversation
|
You do not have enough credits to review this pull request. Please purchase more credits to continue. |
📝 WalkthroughSummary by CodeRabbit
WalkthroughUpdates Claude Opus model references from version 4.6 to 4.7 across six configuration files, including environment settings, model registries, and agent/application configurations. No functional logic or control flow modifications. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 |
There was a problem hiding this comment.
Code Review
This pull request updates the Claude Opus model version from 4.6 to 4.7 across multiple configuration files, including agent templates and model mappings. A review comment identifies a potential misconfiguration in config/ccs/agy.settings.template.json, where the ANTHROPIC_DEFAULT_SONNET_MODEL is being mapped to an Opus model version instead of a Sonnet model, which could lead to unintended behavior and increased API costs.
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-6", | ||
| "ANTHROPIC_MODEL": "claude-opus-4-7", | ||
| "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-7", | ||
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-7", |
There was a problem hiding this comment.
The ANTHROPIC_DEFAULT_SONNET_MODEL is being updated to claude-opus-4-7. This indicates that the Sonnet model setting is incorrectly mapped to the Opus model version in the underlying template. This will result in higher API costs and potentially different model behavior than intended for Sonnet-level tasks. It should likely be set to claude-sonnet-4-6 to align with the Sonnet tier.
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-7", | |
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6", |
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 `@config/ccs/agy.settings.template.json`:
- Line 7: The ANTHROPIC_DEFAULT_SONNET_MODEL value is pointing to Opus
("claude-opus-4-7") which will misroute Sonnet traffic; update the
ANTHROPIC_DEFAULT_SONNET_MODEL setting to the correct Sonnet model identifier
(e.g., "claude-sonnet-2024-12" or your project's canonical Sonnet model name) so
Sonnet-default traffic is routed correctly, by editing the
ANTHROPIC_DEFAULT_SONNET_MODEL entry in the settings template.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 80aad1ae-44f1-4b4e-b234-3bfe86af93cb
📒 Files selected for processing (6)
config/ccs/agy.settings.template.jsonconfig/llm/extra-openai-models.yamlconfig/openclaw/openclaw.template.jsonconfig/opencode/opencode.jsoncconfig/pi/models.jsonmodels.json
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-6", | ||
| "ANTHROPIC_MODEL": "claude-opus-4-7", | ||
| "ANTHROPIC_DEFAULT_OPUS_MODEL": "claude-opus-4-7", | ||
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-7", |
There was a problem hiding this comment.
ANTHROPIC_DEFAULT_SONNET_MODEL points to the wrong model.
On Line 7, ANTHROPIC_DEFAULT_SONNET_MODEL is set to claude-opus-4-7. This will route Sonnet-default traffic to Opus unexpectedly.
🔧 Proposed fix
- "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-7",
+ "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6",📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-opus-4-7", | |
| "ANTHROPIC_DEFAULT_SONNET_MODEL": "claude-sonnet-4-6", |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@config/ccs/agy.settings.template.json` at line 7, The
ANTHROPIC_DEFAULT_SONNET_MODEL value is pointing to Opus ("claude-opus-4-7")
which will misroute Sonnet traffic; update the ANTHROPIC_DEFAULT_SONNET_MODEL
setting to the correct Sonnet model identifier (e.g., "claude-sonnet-2024-12" or
your project's canonical Sonnet model name) so Sonnet-default traffic is routed
correctly, by editing the ANTHROPIC_DEFAULT_SONNET_MODEL entry in the settings
template.
Mesa DescriptionTL;DRBumped What changed?
Description generated by Mesa. Update settings |
Summary
claude-opusfromclaude-opus-4-6toclaude-opus-4-7in models.jsonscripts/llm-update.shTest plan
Summary by cubic
Bumps
claude-opusfromclaude-opus-4-6toclaude-opus-4-7across configs and templates to standardize on the latest Opus. Updates model IDs and display names inmodels.json,pi,opencode,openclaw,ccs, andllmconfigs.claude-opus-4-6toclaude-opus-4-7and restart affected services (opencode,openclaw,pi,ccs,llm).Written for commit 79c2404. Summary will update on new commits.