Skip to content

feat: Add Claude Fable 5 model pricing and display name to Performance dashboard#1342

Open
asdf8675309 wants to merge 1 commit into
danielmiessler:mainfrom
asdf8675309:feat/fable-5-performance-pricing
Open

feat: Add Claude Fable 5 model pricing and display name to Performance dashboard#1342
asdf8675309 wants to merge 1 commit into
danielmiessler:mainfrom
asdf8675309:feat/fable-5-performance-pricing

Conversation

@asdf8675309

@asdf8675309 asdf8675309 commented Jun 10, 2026

Copy link
Copy Markdown

Fixes #1341

Fable 5 sessions were getting costed at Sonnet rates and showing up as a raw model id. Three small changes:

  • MODEL_PRICING: add claude-fable-5 ($10/$50; cache write 12.50, cache read 1.00 — same ratios as the rest of the table)
  • getPricing(): add a fable fuzzy-match branch so suffixed ids like claude-fable-5[1m] price right instead of falling through to Sonnet
  • shortModel(): show "Fable" on the dashboard

Testing: ran it on macOS (Bun) against a sandboxed fresh HOME with a synthetic Fable transcript. Exit 0, no errors, and the costs match hand math exactly — 1M input → $10.00, 100K output → $5.00, 200K cache write → $2.50, 4M cache read → $4.00. The dashboard maps the id to "Fable".

6 added lines across two files in the v5.0.0 bundle. Nothing platform-specific.

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.

Performance dashboard: Claude Fable 5 sessions costed at Sonnet pricing and shown as raw model id

1 participant