fix(stats): format market share tokens
This commit is contained in:
@@ -538,11 +538,11 @@ function buildMarketShare(rows: ProviderMetricRow[], product: UsageProduct, rang
|
||||
return [
|
||||
{
|
||||
date: bucket.label,
|
||||
total: round(totalTokens / 1_000_000_000_000, 2),
|
||||
total: round(totalTokens / 1_000_000_000_000, 6),
|
||||
authors: withOther.map((item) => ({
|
||||
author: item.provider === "Other" ? "Other" : formatProvider(item.provider),
|
||||
share: round((item.tokens / totalTokens) * 100, 1),
|
||||
tokens: round(item.tokens / 1_000_000_000_000, 2),
|
||||
tokens: round(item.tokens / 1_000_000_000_000, 6),
|
||||
})),
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user