Skip to content

Price claude-fable-5 from the updated LiteLLM snapshot - #198

Merged
chattymin merged 1 commit into
chattymin:mainfrom
shawnla90:price-claude-fable-5
Aug 22, 2026
Merged

chattymin merged 1 commit into
chattymin:mainfrom
shawnla90:price-claude-fable-5

Conversation

@shawnla90

Copy link
Copy Markdown
Contributor

Summary

claude-fable-5 was bundled as $0 because the model was unpriced in the ccusage/LiteLLM snapshot when the table was built. The current LiteLLM snapshot now lists it (claude-fable-5: $10 input / $50 output / $12.50 cache-write / $1.00 cache-read per Mtok, matching Anthropic's published rates), so every fable-5 token currently undercounts the day/week/month cost totals silently — on a fable-heavy setup, by hundreds of dollars per month of API-equivalent cost.

  • Update the exact-match row to the snapshot rates.
  • Add a fable family fallback for version drift, mirroring the existing opus/sonnet/haiku fallbacks. Placed after the grok/antigravity/ short-circuits so those still win (covered by assertions below).
  • I verified every other Claude row in the table still matches the current LiteLLM snapshot exactly — only this row was stale.

Type of change

  • Bug fix
  • New feature
  • Refactor / cleanup
  • Documentation
  • Other:

Checklist

  • swift build and swift test pass locally
  • PR title and description are written in English
  • UI changes are described above (before/after — images optional) — no UI changes
  • No copyrighted assets, secrets, or private tooling references are committed (see CONTRIBUTING)
  • Tests were added or updated for this change

Test notes: updated the fable-5 expectation in testPricingExactAndFallbackAndZero (1M of each token type → $73.50) and added a family-fallback assertion (claude-fable-6 → $10 input). Local machine has Command Line Tools only (no XCTest), so the suite ran on a fork CI run of this branch; swift build verified locally.

The exact-match table bundled claude-fable-5 as $0 because the model was
unpriced in the ccusage/LiteLLM snapshot at the time. LiteLLM now lists it
at $10 input / $50 output / $12.50 cache-write / $1.00 cache-read per
Mtok (matching Anthropic's published rates), so daily/weekly/monthly cost
totals silently undercounted every fable-5 token.

Also adds a fable family fallback for version drift, mirroring the
existing opus/sonnet/haiku fallbacks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@chattymin
chattymin merged commit ad9e75e into chattymin:main Aug 22, 2026
2 checks passed
@chattymin

Copy link
Copy Markdown
Owner

Thank you for your contribution!

cte13 pushed a commit to cte13/PokeTokenBar-iOS that referenced this pull request Aug 23, 2026
Brings in upstream features and integrates them with the fork's iOS/OpenCode Go work:
- Antigravity 2.0 / IDE official rate-limit tracking (chattymin#210, chattymin#219, chattymin#220)
- French (fr) UI language (chattymin#185) — added fr strings to fork-only labels
- Per-provider additional scan folders (chattymin#177/chattymin#187)
- Account-labeled official limits (chattymin#199), swift.org Swift 6.3 toolchains (chattymin#216),
  claude-fable-5 pricing (chattymin#198)

Conflicts resolved in Localization, UsageStore, PopoverView, and their tests by
keeping both the fork's OpenCode Go limits and upstream's Antigravity limits, and
by giving fork-only localized labels their French values.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
lukemonaghan pushed a commit to lukemonaghan/PokeTokenBar that referenced this pull request Aug 24, 2026
The exact-match table bundled claude-fable-5 as $0 because the model was
unpriced in the ccusage/LiteLLM snapshot at the time. LiteLLM now lists it
at $10 input / $50 output / $12.50 cache-write / $1.00 cache-read per
Mtok (matching Anthropic's published rates), so daily/weekly/monthly cost
totals silently undercounted every fable-5 token.

Also adds a fable family fallback for version drift, mirroring the
existing opus/sonnet/haiku fallbacks.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants