We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f2df3f commit 832d298Copy full SHA for 832d298
src/api/providers/__tests__/gemini.spec.ts
@@ -75,7 +75,14 @@ describe("GeminiHandler", () => {
75
expect(chunks.length).toBe(3)
76
expect(chunks[0]).toEqual({ type: "text", text: "Hello" })
77
expect(chunks[1]).toEqual({ type: "text", text: " world!" })
78
- expect(chunks[2]).toEqual({ type: "usage", inputTokens: 10, outputTokens: 5 })
+ expect(chunks[2]).toEqual({
79
+ type: "usage",
80
+ inputTokens: 10,
81
+ outputTokens: 5,
82
+ cacheReadTokens: undefined,
83
+ reasoningTokens: undefined,
84
+ totalCost: expect.any(Number),
85
+ })
86
87
// Verify the call to generateContentStream
88
expect(handler["client"].models.generateContentStream).toHaveBeenCalledWith(
0 commit comments