feat: Add Claude Fable 5 model pricing and display name to Performance dashboard#1342
Open
asdf8675309 wants to merge 1 commit into
Open
feat: Add Claude Fable 5 model pricing and display name to Performance dashboard#1342asdf8675309 wants to merge 1 commit into
asdf8675309 wants to merge 1 commit into
Conversation
…e dashboard (tested on macOS)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 dashboardTesting: 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.