mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-17 23:51:08 +00:00
fix: update openai-usage-tracking tests for unified usage metrics shape
This commit is contained in:
parent
94232eb644
commit
831f54cc95
1 changed files with 10 additions and 0 deletions
|
|
@ -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,
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue