Error while using Cline with Gemini Flash 2.0
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
- openrouter api with gemini flash 2.0
- run message
- "Provider returned error"
Relevant API REQUEST output
API Request Failed: Provider returned error
Additional context
Also occurring with google/gemini-exp-1206:free
Could be an issue with Open Router
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
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
Gemini 2.0 broken today too via Open Router, and definitely not working at all via Google provider
Looks related to #962
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
Thank you @fridaystreet