fix(zen): emit cost chunk in client-facing format, not upstream format (#16817)

This commit is contained in:
Kit Langton
2026-03-20 23:10:34 -04:00
committed by GitHub
parent 5dc47905a9
commit 6a64177589
6 changed files with 19 additions and 11 deletions
@@ -44,7 +44,6 @@ export const openaiHelper: ProviderHelper = () => ({
usage = json.response.usage
},
retrieve: () => usage,
buidlCostChunk: (cost: string) => `event: ping\ndata: ${JSON.stringify({ type: "ping", cost })}\n\n`,
}
},
normalizeUsage: (usage: Usage) => {