mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 03:54:43 -07:00
Log when flash model decided to continue (#4698)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -43,6 +43,8 @@ import { ProxyAgent, setGlobalDispatcher } from 'undici';
|
||||
import { DEFAULT_GEMINI_FLASH_MODEL } from '../config/models.js';
|
||||
import { LoopDetectionService } from '../services/loopDetectionService.js';
|
||||
import { ideContext } from '../services/ideContext.js';
|
||||
import { ClearcutLogger } from '../telemetry/clearcut-logger/clearcut-logger.js';
|
||||
import { FlashDecidedToContinueEvent } from '../telemetry/types.js';
|
||||
|
||||
function isThinkingSupported(model: string) {
|
||||
if (model.startsWith('gemini-2.5')) return true;
|
||||
@@ -386,6 +388,9 @@ export class GeminiClient {
|
||||
signal,
|
||||
);
|
||||
if (nextSpeakerCheck?.next_speaker === 'model') {
|
||||
ClearcutLogger.getInstance(this.config)?.logFlashDecidedToContinueEvent(
|
||||
new FlashDecidedToContinueEvent(prompt_id),
|
||||
);
|
||||
const nextRequest = [{ text: 'Please continue.' }];
|
||||
// This recursive call's events will be yielded out, but the final
|
||||
// turn object will be from the top-level call.
|
||||
|
||||
Reference in New Issue
Block a user