cline icon indicating copy to clipboard operation
cline copied to clipboard

Error while using Cline with Gemini Flash 2.0

Open ARYANGS opened this issue 1 year ago • 6 comments

Which API Provider are you using?

OpenRouter

Which Model are you using?

gemini flash 2.0

What happened?

whenever i enter the message, it loads for a few seconds and then shows the "API request failed" message followed by "Provider returned error"

Steps to reproduce

  1. openrouter api with gemini flash 2.0
  2. run message
  3. "Provider returned error"

Relevant API REQUEST output

API Request Failed: Provider returned error

Additional context

Screenshot 2024-12-16 234736

ARYANGS avatar Dec 16 '24 20:12 ARYANGS

Also occurring with google/gemini-exp-1206:free

Khalil-Zaman avatar Dec 16 '24 20:12 Khalil-Zaman

Could be an issue with Open Router image

Khalil-Zaman avatar Dec 16 '24 20:12 Khalil-Zaman

I think this is to do with OpenRouter, as Flash 2.0 now works on Open Router, which now also works on Cline. But 1206 is still throwing an error on OpenRouter as well as Cline. Seems similar to this https://github.com/cline/cline/issues/813

Khalil-Zaman avatar Dec 17 '24 08:12 Khalil-Zaman

I'm still getting this error for both Flashh 2.0 and exp1206 on cline. Gemini 2 is too busy and hence unavailable. I spent considerable time trying to fix this as my account activity page clearly showed I was using Gemini 2 tokens, yet I consistently received the error. However, I tried llama and open router responded immediately and the corresponding tokens for llama were displayed on my activity page. I waited a few hours and got responses on flash 2.0, but the connection soon returned the same error message. I gave up and went back to accessing Gemini 2 Flash on studio[.]google[.]ai which works great and you can set the tools and temperatures as needed. I'm still looking for a fix tho as the cline's self editing tool is very helpful

ARYANGS avatar Dec 17 '24 17:12 ARYANGS

Gemini 2.0 broken today too via Open Router, and definitely not working at all via Google provider

m-check1B avatar Dec 17 '24 19:12 m-check1B

Looks related to #962

mdp avatar Dec 20 '24 21:12 mdp

see my answer here https://github.com/cline/cline/issues/962#issuecomment-2557895247

you need a 'paid' google key, it won't work through openrouter

fridaystreet avatar Dec 21 '24 08:12 fridaystreet

Thank you @fridaystreet

saoudrizwan avatar Dec 25 '24 23:12 saoudrizwan