Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

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

Open asdf8675309 opened this issue 5 months ago • 0 comments

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.

asdf8675309 avatar Jun 10 '26 13:06 asdf8675309