Personal_AI_Infrastructure
Personal_AI_Infrastructure copied to clipboard
feat: Add Claude Fable 5 model pricing and display name to Performance dashboard
Fixes #1341
Fable 5 sessions were getting costed at Sonnet rates and showing up as a raw model id. Three small changes:
MODEL_PRICING: addclaude-fable-5($10/$50; cache write 12.50, cache read 1.00 — same ratios as the rest of the table)getPricing(): add afablefuzzy-match branch so suffixed ids likeclaude-fable-5[1m]price right instead of falling through to SonnetshortModel(): 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.