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
message=`⚡ You have reached your daily ${currentModel} quota limit.
305
310
⚡ Automatically switching from ${currentModel} to ${fallbackModel} for the remainder of this session.
306
311
⚡ To continue accessing the ${currentModel} model today, consider using /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey`;
307
-
}else{
308
-
message=`⚡ You have reached your daily ${currentModel} quota limit.
312
+
}else{
313
+
message=`⚡ You have reached your daily ${currentModel} quota limit.
309
314
⚡ Automatically switching from ${currentModel} to ${fallbackModel} for the remainder of this session.
310
315
⚡ 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
311
316
⚡ Or you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
312
317
⚡ You can switch authentication methods by typing /auth`;
message=`⚡ You have reached your daily quota limit.
317
322
⚡ Automatically switching from ${currentModel} to ${fallbackModel} for the remainder of this session.
318
323
⚡ To continue accessing the ${currentModel} model today, consider using /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey`;
319
-
}else{
320
-
message=`⚡ You have reached your daily quota limit.
324
+
}else{
325
+
message=`⚡ You have reached your daily quota limit.
321
326
⚡ Automatically switching from ${currentModel} to ${fallbackModel} for the remainder of this session.
322
327
⚡ 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
323
328
⚡ Or you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
324
329
⚡ You can switch authentication methods by typing /auth`;
325
-
}
326
-
}else{
327
-
if(isPaidTier){
328
-
// Default fallback message for other cases (like consecutive 429s)
329
-
message=`⚡ Automatically switching from ${currentModel} to ${fallbackModel} for faster responses for the remainder of this session.
330
+
}
331
+
}else{
332
+
if(isPaidTier){
333
+
// Default fallback message for other cases (like consecutive 429s)
334
+
message=`⚡ Automatically switching from ${currentModel} to ${fallbackModel} for faster responses for the remainder of this session.
330
335
⚡ Possible reasons for this are that you have received multiple consecutive capacity errors or you have reached your daily ${currentModel} quota limit
331
336
⚡ To continue accessing the ${currentModel} model today, consider using /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey`;
332
-
}else{
333
-
// Default fallback message for other cases (like consecutive 429s)
334
-
message=`⚡ Automatically switching from ${currentModel} to ${fallbackModel} for faster responses for the remainder of this session.
337
+
}else{
338
+
// Default fallback message for other cases (like consecutive 429s)
339
+
message=`⚡ Automatically switching from ${currentModel} to ${fallbackModel} for faster responses for the remainder of this session.
335
340
⚡ Possible reasons for this are that you have received multiple consecutive capacity errors or you have reached your daily ${currentModel} quota limit
336
341
⚡ 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
337
342
⚡ Or you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
338
343
⚡ You can switch authentication methods by typing /auth`;
344
+
}
339
345
}
340
-
}
341
346
342
-
// Add message to UI history
343
-
addItem(
344
-
{
345
-
type: MessageType.INFO,
346
-
text: message,
347
-
},
348
-
Date.now(),
349
-
);
347
+
// Add message to UI history
348
+
addItem(
349
+
{
350
+
type: MessageType.INFO,
351
+
text: message,
352
+
},
353
+
Date.now(),
354
+
);
355
+
356
+
// Set the flag to prevent tool continuation
357
+
setModelSwitchedFromQuotaError(true);
358
+
// Set global quota error flag to prevent Flash model calls
359
+
config.setQuotaErrorOccurred(true);
360
+
}
350
361
351
-
// Set the flag to prevent tool continuation
352
-
setModelSwitchedFromQuotaError(true);
353
-
// Set global quota error flag to prevent Flash model calls
354
-
config.setQuotaErrorOccurred(true);
355
362
// Switch model for future use but return false to stop current retry
0 commit comments