mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-15 05:47:18 -07:00
fix(ui): Track last prompt token count in processStream (#8650)
This commit is contained in:
@@ -49,6 +49,7 @@ import {
|
||||
import type { IdeContext, File } from '../ide/types.js';
|
||||
import { handleFallback } from '../fallback/handler.js';
|
||||
import type { RoutingContext } from '../routing/routingStrategy.js';
|
||||
import { uiTelemetryService } from '../telemetry/uiTelemetry.js';
|
||||
|
||||
export function isThinkingSupported(model: string) {
|
||||
return model.startsWith('gemini-2.5') || model === DEFAULT_GEMINI_MODEL_AUTO;
|
||||
@@ -772,6 +773,8 @@ export class GeminiClient {
|
||||
};
|
||||
}
|
||||
|
||||
uiTelemetryService.setLastPromptTokenCount(newTokenCount);
|
||||
|
||||
logChatCompression(
|
||||
this.config,
|
||||
makeChatCompressionEvent({
|
||||
|
||||
Reference in New Issue
Block a user