fix: update openai-usage-tracking tests for unified usage metrics shape

This commit is contained in:
Hannes Rudolph 2026-02-11 18:21:32 -07:00
parent 94232eb644
commit 831f54cc95

View file

@ -98,6 +98,11 @@ describe("OpenAiHandler with usage tracking fix", () => {
type: "usage",
inputTokens: 10,
outputTokens: 5,
cacheReadTokens: undefined,
cacheWriteTokens: undefined,
nonCachedInputTokens: 10,
reasoningTokens: undefined,
totalCost: 0,
})
const lastChunk = chunks[chunks.length - 1]
@ -133,6 +138,11 @@ describe("OpenAiHandler with usage tracking fix", () => {
type: "usage",
inputTokens: 10,
outputTokens: 5,
cacheReadTokens: undefined,
cacheWriteTokens: undefined,
nonCachedInputTokens: 10,
reasoningTokens: undefined,
totalCost: 0,
})
})