From 1feb17550257899c27d65f8ee75b9ca47f0a6b95 Mon Sep 17 00:00:00 2001 From: Matt <174058705+asdf8675309@users.noreply.github.com> Date: Wed, 10 Jun 2026 09:30:12 -0400 Subject: [PATCH] feat: Add Claude Fable 5 model pricing and display name to Performance dashboard (tested on macOS) --- .../PAI/PULSE/Observability/src/app/performance/page.tsx | 1 + .../v5.0.0/.claude/PAI/PULSE/Performance/cost-aggregator.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Releases/v5.0.0/.claude/PAI/PULSE/Observability/src/app/performance/page.tsx b/Releases/v5.0.0/.claude/PAI/PULSE/Observability/src/app/performance/page.tsx index 511ac28803..752a689a16 100644 --- a/Releases/v5.0.0/.claude/PAI/PULSE/Observability/src/app/performance/page.tsx +++ b/Releases/v5.0.0/.claude/PAI/PULSE/Observability/src/app/performance/page.tsx @@ -102,6 +102,7 @@ function formatTokens(n: number): string { } function shortModel(m: string): string { + if (m.includes("fable")) return "Fable"; if (m.includes("opus")) return "Opus"; if (m.includes("haiku")) return "Haiku"; if (m.includes("sonnet")) return "Sonnet"; diff --git a/Releases/v5.0.0/.claude/PAI/PULSE/Performance/cost-aggregator.ts b/Releases/v5.0.0/.claude/PAI/PULSE/Performance/cost-aggregator.ts index 727620fab6..6bd9224d76 100644 --- a/Releases/v5.0.0/.claude/PAI/PULSE/Performance/cost-aggregator.ts +++ b/Releases/v5.0.0/.claude/PAI/PULSE/Performance/cost-aggregator.ts @@ -21,6 +21,8 @@ const STATE_FILE = join(PAI_DIR, "PULSE", "Performance", "aggregator-state.json" // Model pricing per million tokens (as of 2026-04) const MODEL_PRICING: Record = { + // Fable 5 + "claude-fable-5": { input: 10, output: 50, cacheWrite: 12.50, cacheRead: 1.00 }, // Opus 4 / 4.6 "claude-opus-4-20250514": { input: 15, output: 75, cacheWrite: 18.75, cacheRead: 1.50 }, "claude-opus-4-6": { input: 15, output: 75, cacheWrite: 18.75, cacheRead: 1.50 }, @@ -35,8 +37,10 @@ const MODEL_PRICING: Record