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

Rate limiting detected with just one message

Open ajaymalik14 opened this issue 1 year ago • 19 comments

What happened?

After my first message I got this message , also AI think for more than 1000s

" Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.

ℹ ⚡ Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.

ℹ ⚡ Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.

ℹ ⚡ Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.

ℹ ⚡ Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.

ℹ ⚡ Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.

ℹ ⚡ Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.

ℹ ⚡ Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.

ℹ ⚡ Rate limiting detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session. "

What did you expect to happen?

I expected it to answer my query

Client information

About Gemini CLI                                                  │
│                                                                   │
│ CLI Version            0.1.1                                      │
│ Git Commit             852210e1 (local modifications)             │
│ Model                  gemini-2.5-flash                           │
│ Sandbox                no sandbox                                 │
│ OS                     darwin   ```

</details>


### Login information

I logged in using google account

### Anything else we need to know?

_No response_

ajaymalik14 avatar Jun 26 '25 13:06 ajaymalik14

i am getting same message

⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session. ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key ⚡ You can switch authentication methods by typing /auth

Wamp1re-Ai avatar Jun 26 '25 13:06 Wamp1re-Ai

I am facing with same issues, it seems there is overload in pro, then they did this approach. Anyway, 2.5 flash is not enough in coding

cybertonton avatar Jun 26 '25 13:06 cybertonton

instead of fake 1000 message , they simply declare it not support 2.5 pro

ajaymalik14 avatar Jun 26 '25 13:06 ajaymalik14

For me it usually starts spinning for minutes on some silly task before it runs into rate limits - I suspect it's looping hundreds of requests per minute and that may be causing this issue, but idk for sure.

samwega avatar Jun 26 '25 15:06 samwega

Can folks share how they are authenticating to the CLI?

ptone avatar Jun 26 '25 15:06 ptone

Can folks share how they are authenticating to the CLI?

Authenticated via connected Google Account in Browser

TheMarcusLee avatar Jun 26 '25 15:06 TheMarcusLee

Same issue, I am authenticated with a GEMINI_API_KEY passed as an env. var.

pavlo avatar Jun 26 '25 17:06 pavlo

SO ANNOYING. cli is useless as long as this happens. I keep getting this message almost immediately:

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to
  gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See:
  https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

and it does not matter if I add my key, it automatically switches to flash model, which as others have stated is useless for coding. Please fix this.

ssuess avatar Jun 27 '25 05:06 ssuess

SO ANNOYING. cli is useless as long as this happens. I keep getting this message almost immediately:

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to
  gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See:
  https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

and it does not matter if I add my key, it automatically switches to flash model, which as others have stated is useless for coding. Please fix this.

Do you have a paid tier of the gemini api? as I believe, 2.5 pro is only in the paid tier.

iWhacko avatar Jun 27 '25 09:06 iWhacko

SO ANNOYING. cli is useless as long as this happens. I keep getting this message almost immediately:

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to
  gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See:
  https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

and it does not matter if I add my key, it automatically switches to flash model, which as others have stated is useless for coding. Please fix this.

Do you have a paid tier of the gemini api? as I believe, 2.5 pro is only in the paid tier.

YES, and I use pro in the browser all time with this account.

ssuess avatar Jun 27 '25 10:06 ssuess

Google must declare publicly that gemini cli won't support 2.5 pro for free at all and all these 1000 request per day are basically fake news. I haven't able to use it in 2 days at all

ajaymalik14 avatar Jun 27 '25 11:06 ajaymalik14

Same here. With free and with paid account. After max 2-3 requests I also get

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session. ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key ⚡ You can switch authentication methods by typing /auth

Let's hope that this is just because it's overcrowded at the moment and will sort itself out when the initial hype is over.

Fenrir200678 avatar Jun 27 '25 11:06 Fenrir200678

Same with paid Gemini Pro account.

yuanxh922 avatar Jun 27 '25 17:06 yuanxh922

For me it usually starts spinning for minutes on some silly task before it runs into rate limits - I suspect it's looping hundreds of requests per minute and that may be causing this issue, but idk for sure.

I have this speculation too, and I even suspect that Waiting for user confirmation... keeps refreshing requests while waiting 🙈 I was switched to gemini-2.5-flash, and the endless wait was almost unavailable. I quit the Gemini process and re-entered the problem. I restarted the Gemini process again, replaced my friend's Google ID, and the problem was solved. Problem solved! That is to say, I alone exceeded the limit within 48 hours yesterday and today.

kid101x avatar Jun 28 '25 06:06 kid101x

So it seems the latest version 0.1.7 fixes it, at least for me. It no longer switches to flash immediately. So much happier now!

ssuess avatar Jun 28 '25 06:06 ssuess

This seems to be about rate limit. Slow response times seems to be this one: #2325

claell avatar Jun 28 '25 12:06 claell

ugh, as of today we are back to the dreaded switch to flash after only one question!

ssuess avatar Jul 01 '25 06:07 ssuess

We are aware of the large number of 429s and model switching to flash during our first week. We’re actively increasing capacity and adjusting this model fallback to resolve the issue and prevent future disruptions.

This is being tracked in #1502

sethtroisi avatar Jul 01 '25 22:07 sethtroisi

Issue still not fixed

ajaymalik14 avatar Aug 19 '25 16:08 ajaymalik14