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.`;
82
-
83
-
if(isPaidTier){
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`;
86
-
}else{
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
90
76
⚡ You can switch authentication methods by typing /auth`;
91
77
}
92
78
}else{
@@ -119,7 +105,7 @@ export function useQuotaAndFallback({
119
105
config.setQuotaErrorOccurred(true);
120
106
121
107
// Interactive Fallback for Pro quota
122
-
if(error&&isProQuotaExceededError(error)){
108
+
if(errorinstanceofTerminalQuotaError){
123
109
if(isDialogPending.current){
124
110
return'stop';// A dialog is already active, so just stop this request.
0 commit comments