Skip to content

Commit 5720883

Browse files
committed
sync
1 parent 007b57f commit 5720883

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • packages/console/app/src/routes/zen/util

packages/console/app/src/routes/zen/util/handler.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,13 @@ export async function handler(
919919
"tokens.cache_read": cacheReadTokens,
920920
"tokens.cache_write_5m": cacheWrite5mTokens,
921921
"tokens.cache_write_1h": cacheWrite1hTokens,
922+
"cost.input.microcents": centsToMicroCents(inputCost),
923+
"cost.output.microcents": centsToMicroCents(outputCost),
924+
"cost.reasoning.microcents": reasoningCost ? centsToMicroCents(reasoningCost) : undefined,
925+
"cost.cache_read.microcents": cacheReadCost ? centsToMicroCents(cacheReadCost) : undefined,
926+
"cost.cache_write.microcents": cacheWrite5mCost ? centsToMicroCents(cacheWrite5mCost) : undefined,
927+
"cost.total.microcents": centsToMicroCents(totalCostInCent),
928+
// deprecated - remove after May 20, 2026
922929
"cost.input": Math.round(inputCost),
923930
"cost.output": Math.round(outputCost),
924931
"cost.reasoning": reasoningCost ? Math.round(reasoningCost) : undefined,

0 commit comments

Comments
 (0)