Add claude-opus-4-8 to pricing matrix#469
Conversation
Add the Claude Opus 4.8 entry to the vendored models.dev snapshot under the anthropic provider, mirroring the 4.7 entry: $5/$25 per Mtok input/output, $0.5 cache-read, $6.25 cache-write, 1M context / 128k output. Matches the shared Opus 4.5/4.6/4.7 pricing so cost reporting recognizes Opus 4.8. https://claude.ai/code/session_01X7HuKZV8ArVVeJBEkTW2L9
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reached
More reviews will be available in 55 minutes and 19 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdates the vendored models.dev pricing snapshot to include ChangesPricing Model Snapshot Documentation & Tests
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
CHANGELOG.md (1)
9-9: 💤 Low valueConsider condensing the pricing details.
The entry includes specific pricing numbers ($5/$25 per Mtok input/output, $0.5 cache-read, $6.25 cache-write, 1M context) that could be considered implementation backstory. As per coding guidelines, changelog entries should prefer concise, impact-first bullets that name what was touched and the practical effect.
♻️ Suggested condensed version
-- Pricing: added `claude-opus-4-8` to the vendored models.dev snapshot ($5/$25 per Mtok input/output, $0.5 cache-read, $6.25 cache-write, 1M context) so cost reporting recognizes Claude Opus 4.8. +- Pricing: added `claude-opus-4-8` to the vendored models.dev snapshot so cost reporting recognizes Claude Opus 4.8.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@CHANGELOG.md` at line 9, Replace the verbose pricing breakdown with a concise, impact-first changelog bullet: keep the subject "claude-opus-4-8" and the action ("added to the vendored models.dev snapshot") and the practical effect ("cost reporting recognizes Claude Opus 4.8"), but remove the specific dollar amounts and technical backstory (e.g., "$5/$25 per Mtok", cache-read/write fees, "1M context"); update the line referencing claude-opus-4-8 accordingly so the entry is short and focused on impact.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@CHANGELOG.md`:
- Line 9: Replace the verbose pricing breakdown with a concise, impact-first
changelog bullet: keep the subject "claude-opus-4-8" and the action ("added to
the vendored models.dev snapshot") and the practical effect ("cost reporting
recognizes Claude Opus 4.8"), but remove the specific dollar amounts and
technical backstory (e.g., "$5/$25 per Mtok", cache-read/write fees, "1M
context"); update the line referencing claude-opus-4-8 accordingly so the entry
is short and focused on impact.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f292ee5a-f230-4d1e-a647-f1aea4149963
📒 Files selected for processing (2)
CHANGELOG.mdcrates/relayburn-sdk/data/models.dev.json
There was a problem hiding this comment.
No issues found across 2 files
You’re at about 93% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Summary
Adds a
claude-opus-4-8entry to the vendored models.dev snapshot so cost reporting recognizes Claude Opus 4.8. The entry is added under the canonicalanthropicprovider (the snapshot compiled into the SDK viainclude_str!).Pricing
Mirrors the
claude-opus-4-7entry, which matches the shared Opus 4.5/4.6/4.7 tier:Why these numbers
Opus 4.5, 4.6, and 4.7 all share identical rates in the snapshot, so this follows the established pattern rather than guessing a new tier. There is no official models.dev data for 4.8 yet (
pnpm run pricing:updatepulls from models.dev, which doesn't list it), so the entry was added manually. The pricing table is keyed by model id with last-provider-wins, so a single canonicalanthropicentry is enough to resolveclaude-opus-4-8.Note
If Opus 4.8's real list price differs from the 4.5–4.7 tier, the
costblock should be updated with the correct numbers.Verification
anthropicprovider.analyze::test suite (pricing/cost) passes: 319 passed, 0 failed.https://claude.ai/code/session_01X7HuKZV8ArVVeJBEkTW2L9
Generated by Claude Code