feat(stats): use catalog pricing in efficiency and token costs

This commit is contained in:
Adam
2026-06-12 13:01:48 -05:00
parent 44308dfd7e
commit ba2455ecc7
5 changed files with 134 additions and 14 deletions
-1
View File
@@ -427,7 +427,6 @@ function buildTokenCost(rows: StatMetricRow[], product: TokenProduct, window: Da
return topModelsByUsage(rows, product, window)
.flatMap((item) => {
const total = costPerMillion(item.totalCostMicrocents, item.totalTokens)
if (total === 0) return []
return [
{
model: item.model,