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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having trouble configuring litellm to use Gemini with a simple api key. My config is simple:
model_list:
litellm_params:
model: gemini/gemini-2.5-flash
api_base: https://generativelanguage.googleapis.com
api_key:
rpm: 6
Trying to connect to the proxy with this configuration just yields errors. I think this is the core error:
httpx.HTTPStatusError: Client error '404 Not Found' for url 'https://generativelanguage.googleapis.com/models/gemini-2.5-flash:generateContent'
I've tried using https://generativelanguage.googleapis.com/v1beta/openai as the base, but this runs into similar problems. What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions