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

This commit is contained in:
Adam 2026-06-12 13:01:48 -05:00
commit ba2455ecc7
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
5 changed files with 134 additions and 14 deletions

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,