You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constactionMessage=`⚡ You have reached your daily quota limit.\n⚡ Automatically switching from ${failedModel} to ${fallbackModel} for the remainder of this session.`;
79
+
}elseif(errorinstanceofRetryableQuotaError){
80
+
// Short term quota retries exhausted (Automatic fallback)
81
+
constactionMessage=`⚡ Your requests are being throttled right now due to server being at capacity for ${failedModel}.\n⚡ Automatically switching from ${failedModel} to ${fallbackModel} for the remainder of this session.`;
82
82
83
83
if(isPaidTier){
84
84
message=`${actionMessage}
85
-
⚡ To continue accessing the ${failedModel} model today, consider using /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey`;
85
+
⚡ To continue accessing the ${failedModel} model, retry your request after some time or consider using /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey`;
86
86
}else{
87
87
message=`${actionMessage}
88
-
⚡ To increase your limits, upgrade to a Gemini Code Assist Standard or Enterprise plan with higher limits at https://goo.gle/set-up-gemini-code-assist
89
-
⚡ Or you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
88
+
⚡ Retry your requests after some time. Otherwise consider upgrading to a Gemini Code Assist Standard or Enterprise plan with higher limits at https://goo.gle/set-up-gemini-code-assist
90
89
⚡ You can switch authentication methods by typing /auth`;
91
90
}
92
91
}else{
93
-
// Consecutive 429s or other errors (Automatic fallback)
92
+
// Other errors (Automatic fallback)
94
93
constactionMessage=`⚡ Automatically switching from ${failedModel} to ${fallbackModel} for faster responses for the remainder of this session.`;
95
94
96
95
if(isPaidTier){
97
96
message=`${actionMessage}
98
-
⚡ Possible reasons for this are that you have received multiple consecutive capacity errors or you have reached your daily ${failedModel}quota limit
99
-
⚡ To continue accessing the ${failedModel} model today, consider using /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey`;
97
+
⚡ Your requests are being throttled temporarily due to server being at capacity for ${failedModel}or there is a service outage.
98
+
⚡ To continue accessing the ${failedModel} model, you can retry your request after some time or consider using /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey`;
100
99
}else{
101
100
message=`${actionMessage}
102
-
⚡ Possible reasons for this are that you have received multiple consecutive capacity errors or you have reached your daily ${failedModel}quota limit
103
-
⚡ To increase your limits, upgrade to a Gemini Code Assist Standard or Enterprise plan with higher limits at https://goo.gle/set-up-gemini-code-assist
101
+
⚡ Your requests are being throttled temporarily due to server being at capacity for ${failedModel}or there is a service outage.
102
+
⚡ To avoid being throttled, you can retry your request after some time or upgrade to a Gemini Code Assist Standard or Enterprise plan with higher limits at https://goo.gle/set-up-gemini-code-assist
104
103
⚡ Or you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
105
104
⚡ You can switch authentication methods by typing /auth`;
106
105
}
@@ -119,7 +118,7 @@ export function useQuotaAndFallback({
119
118
config.setQuotaErrorOccurred(true);
120
119
121
120
// Interactive Fallback for Pro quota
122
-
if(error&&isProQuotaExceededError(error)){
121
+
if(errorinstanceofTerminalQuotaError){
123
122
if(isDialogPending.current){
124
123
return'stop';// A dialog is already active, so just stop this request.
0 commit comments