sync
This commit is contained in:
@@ -919,6 +919,13 @@ export async function handler(
|
|||||||
"tokens.cache_read": cacheReadTokens,
|
"tokens.cache_read": cacheReadTokens,
|
||||||
"tokens.cache_write_5m": cacheWrite5mTokens,
|
"tokens.cache_write_5m": cacheWrite5mTokens,
|
||||||
"tokens.cache_write_1h": cacheWrite1hTokens,
|
"tokens.cache_write_1h": cacheWrite1hTokens,
|
||||||
|
"cost.input.microcents": centsToMicroCents(inputCost),
|
||||||
|
"cost.output.microcents": centsToMicroCents(outputCost),
|
||||||
|
"cost.reasoning.microcents": reasoningCost ? centsToMicroCents(reasoningCost) : undefined,
|
||||||
|
"cost.cache_read.microcents": cacheReadCost ? centsToMicroCents(cacheReadCost) : undefined,
|
||||||
|
"cost.cache_write.microcents": cacheWrite5mCost ? centsToMicroCents(cacheWrite5mCost) : undefined,
|
||||||
|
"cost.total.microcents": centsToMicroCents(totalCostInCent),
|
||||||
|
// deprecated - remove after May 20, 2026
|
||||||
"cost.input": Math.round(inputCost),
|
"cost.input": Math.round(inputCost),
|
||||||
"cost.output": Math.round(outputCost),
|
"cost.output": Math.round(outputCost),
|
||||||
"cost.reasoning": reasoningCost ? Math.round(reasoningCost) : undefined,
|
"cost.reasoning": reasoningCost ? Math.round(reasoningCost) : undefined,
|
||||||
|
|||||||
Reference in New Issue
Block a user