From 8a6509ffeba271a8e7ccb83066a9a31a5d72a647 Mon Sep 17 00:00:00 2001 From: Bryan Morgan Date: Wed, 9 Jul 2025 13:55:56 -0400 Subject: Remove auto-execution on Flash in the event of a 429/Quota failover (#3662) Co-authored-by: Jenna Inouye --- packages/cli/src/ui/utils/errorParsing.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/cli/src/ui/utils/errorParsing.ts') diff --git a/packages/cli/src/ui/utils/errorParsing.ts b/packages/cli/src/ui/utils/errorParsing.ts index 555d5e4e..5031bc0a 100644 --- a/packages/cli/src/ui/utils/errorParsing.ts +++ b/packages/cli/src/ui/utils/errorParsing.ts @@ -19,7 +19,7 @@ import { const getRateLimitErrorMessageGoogleFree = ( fallbackModel: string = DEFAULT_GEMINI_FLASH_MODEL, ) => - `\nSlow response times detected. Switching to the ${fallbackModel} model for the rest of this session.`; + `\nPossible quota limitations in place or slow response times detected. Switching to the ${fallbackModel} model for the rest of this session.`; const getRateLimitErrorMessageGoogleProQuotaFree = ( currentModel: string = DEFAULT_GEMINI_MODEL, @@ -34,7 +34,7 @@ const getRateLimitErrorMessageGoogleGenericQuotaFree = () => const getRateLimitErrorMessageGooglePaid = ( fallbackModel: string = DEFAULT_GEMINI_FLASH_MODEL, ) => - `\nSlow response times detected. Switching to the ${fallbackModel} model for the rest of this session. We appreciate you for choosing Gemini Code Assist and the Gemini CLI.`; + `\nPossible quota limitations in place or slow response times detected. Switching to the ${fallbackModel} model for the rest of this session. We appreciate you for choosing Gemini Code Assist and the Gemini CLI.`; const getRateLimitErrorMessageGoogleProQuotaPaid = ( currentModel: string = DEFAULT_GEMINI_MODEL, @@ -53,7 +53,7 @@ const RATE_LIMIT_ERROR_MESSAGE_VERTEX = const getRateLimitErrorMessageDefault = ( fallbackModel: string = DEFAULT_GEMINI_FLASH_MODEL, ) => - `\nSlow response times detected. Switching to the ${fallbackModel} model for the rest of this session.`; + `\nPossible quota limitations in place or slow response times detected. Switching to the ${fallbackModel} model for the rest of this session.`; function getRateLimitMessage( authType?: AuthType, -- cgit v1.2.3