diff options
| author | uttamkanodia14 <[email protected]> | 2025-07-12 02:40:25 +0530 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-11 21:10:25 +0000 |
| commit | 5b5f496436a060124e57009d1f7f37bd4d27f0f3 (patch) | |
| tree | 7d213f79753071c20cb90c36ebdc6edbce4ffa21 /packages/cli/src/ui/App.tsx | |
| parent | 764809753ad85ecc209aa9b126efbb3390c03274 (diff) | |
Adds Flash Fallback logging and clearcut logging (#3843)
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 519a4b53..f2324b28 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -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 }; |
