Adds Flash Fallback logging and clearcut logging (#3843)

This commit is contained in:
uttamkanodia14
2025-07-12 02:40:25 +05:30
committed by GitHub
parent 764809753a
commit 5b5f496436
8 changed files with 93 additions and 1 deletions

View File

@@ -54,6 +54,8 @@ import {
ApprovalMode,
isEditorAvailable,
EditorType,
FlashFallbackEvent,
logFlashFallback,
} from '@google/gemini-cli-core';
import { validateAuthMethod } from '../config/auth.js';
import { useLogger } from './hooks/useLogger.js';
@@ -340,6 +342,10 @@ const App = ({ config, settings, startupWarnings = [], version }: AppProps) => {
config.setQuotaErrorOccurred(true);
// Switch model for future use but return false to stop current retry
config.setModel(fallbackModel);
logFlashFallback(
config,
new FlashFallbackEvent(config.getContentGeneratorConfig().authType!),
);
return false; // Don't continue with current prompt
};