fix(usage): price Claude fast-mode requests at the fast rate (#13599)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
86054b6df2
commit
e3e7cc3fc2
8 files changed
+129
-38
No files matched your search
@@ -161,20 +161,13 @@ export class UsageAggregator {
|
||||
this.#buckets.set(key, bucket);
|
||||
}
|
||||
|
||||
const priced = priceUsage(
|
||||
this.#options.rates,
|
||||
record.model,
|
||||
record.totals,
|
||||
record.reportedCostUsd,
|
||||
this.#options.priceOverrides,
|
||||
);
|
||||
const priced = priceUsage(this.#options.rates, record, this.#options.priceOverrides);
|
||||
|
||||
bucket.totals = addTotals(bucket.totals, record.totals);
|
||||
bucket.costUsd += priced.costUsd;
|
||||
bucket.cacheSavingsUsd += cacheSavingsUsd(
|
||||
this.#options.rates,
|
||||
record.model,
|
||||
record.totals,
|
||||
record,
|
||||
this.#options.priceOverrides,
|
||||
);
|
||||
bucket.records += 1;
|
||||
|
||||
Reference in new issue
Block a user