gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Rate limiting detected loop

Open medright opened this issue 1 year ago • 8 comments

What happened?

After using the cli interface for a short time(15-20min) the output becomes a loop: `ℹ ⚡ Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.

⠏ Confirming Implementation Steps (esc to cancel, 690s)`

What did you expect to happen?

Cli would transition and complete current tasks or gracefully fail

Client information

│ About Gemini CLI │ │ │ │ CLI Version 0.1.3 │ │ Git Commit 382486e (local modifications) │ │ Model gemini-2.5-flash │ │ Sandbox no sandbox │ │ OS darwin │ │

Login information

personal google account

Anything else we need to know?

No response

medright avatar Jun 26 '25 00:06 medright

In the first 10 hours after launch, we got a ridiculous amount of interest (far more than we dreamed) which resulted in us exceeding our internal capacity. We're doing a number of things to make it better including:

  1. adding more gemini TPU capacity
  2. intelligently routing requests to different models based on complexity
  3. providing better fallbacks when there's a slow response
  4. fixing that weird looping behavior

Sorry, but thanks for riding it out with us. 🙏

ryanjsalva avatar Jun 26 '25 00:06 ryanjsalva

No worries, I'm really enjoying your ui/ux so far and look forward to exploring with it more as you scale. Initial impressions are pretty positive for the agent if you have discrete targeted instructions. Nice work 🙌

medright avatar Jun 26 '25 00:06 medright

I am currently sitting on a 10min loop, it says "Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session." but it fails to route to a different model, even after I exit and create a new instance it fails to give a prompt back. I tried to sign in with a new account but even that gives the same loop after a few prompts :(

vivekgh0sh avatar Jun 26 '25 14:06 vivekgh0sh

For those logging in with a personal google account, we released a version that do the model switch.

For GEMINI_API_KEY we are looking to address 429 errors

@vivekgh0sh can you verify you are running version at least 0.1.5 and are not seeing the CLI auto switch to Flash model (and that you are authenticating as a gmail account)

ptone avatar Jun 26 '25 15:06 ptone

I upgraded to the latest version 0.1.5 and the issue of looping is solved (logged in with google account). Thanks!

vivekgh0sh avatar Jun 27 '25 18:06 vivekgh0sh

@ptone, so should I downgrade to avoid the model switch?

claell avatar Jun 28 '25 12:06 claell

I updated to 0.1.7 and it doesn't model switch @claell

vivekgh0sh avatar Jun 29 '25 12:06 vivekgh0sh

We're working as quickly as we can on quota and 429s. thanks for your patience as we deal with a firehose of users during this launch. I'm de-duping this with #1502 to consolidate conversation there.

sethtroisi avatar Jul 01 '25 00:07 sethtroisi