Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

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

Open asdf8675309 opened this issue 5 months ago • 1 comments

The Performance dashboard doesn't know about Claude Fable 5 yet. Two problems:

  • Costs are wrong. MODEL_PRICING has no claude-fable-5 entry, so getPricing() falls through to the Sonnet default ($3/$15). Fable is $10/$50 — Fable-heavy sessions get under-costed about 3.3x.
  • Display is broken. shortModel() only knows opus/haiku/sonnet, so Fable sessions show up as a truncated raw id like claude-fable-5[1m] instead of "Fable".

One detail that matters: transcripts carry suffixed ids (claude-fable-5[1m]), so a table entry alone won't fix it — the fuzzy match needs a fable branch too.

The fix is small (PR incoming):

  • Add "claude-fable-5": { input: 10, output: 50, cacheWrite: 12.50, cacheRead: 1.00 } to MODEL_PRICING
  • Add a fable branch to the fuzzy match
  • Add the "Fable" display name to shortModel()

Tested in a sandbox with a synthetic Fable transcript — costs came out exact ($10.00 for 1M input, $5.00 for 100K output, and so on down the line).

Two things I hit while testing, separate from this fix — I can file them if you want them tracked:

  • First run on a completely fresh system crashes: saveState() writes into PAI/PULSE/Performance/, but nothing ever creates that directory
  • The Opus rows still carry $15/$75 pricing; current Opus 4.x is $5/$25

asdf8675309 avatar Jun 10 '26 13:06 asdf8675309

The important half of this — the 3.3x under-costing — is fixed in current source with exactly your numbers ($10/$50, cache 12.50/1.00), plus a fable branch in the fuzzy match and the Opus 4.x $5/$25 correction you flagged in passing. The shortModel display branch was the one piece still missing; that one-liner is in now too. Thanks for sandbox-verifying the math down to the dollar. Ships in the next release.

danielmiessler avatar Jul 07 '26 18:07 danielmiessler