mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-23 20:40:41 -07:00
Show raw input token counts in json output. (#15021)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -47,7 +47,15 @@ vi.mock('@google/gemini-cli-core', async (importOriginal) => {
|
||||
})),
|
||||
StreamJsonFormatter: vi.fn().mockImplementation(() => ({
|
||||
emitEvent: vi.fn(),
|
||||
convertToStreamStats: vi.fn().mockReturnValue({}),
|
||||
convertToStreamStats: vi.fn().mockReturnValue({
|
||||
total_tokens: 0,
|
||||
input_tokens: 0,
|
||||
output_tokens: 0,
|
||||
cached: 0,
|
||||
input: 0,
|
||||
duration_ms: 0,
|
||||
tool_calls: 0,
|
||||
}),
|
||||
})),
|
||||
uiTelemetryService: {
|
||||
getMetrics: vi.fn().mockReturnValue({}),
|
||||
|
||||
Reference in New Issue
Block a user