Replies: 5 comments
-
when i last checked gemini on google ai studio didn't allow url's to be passed, checking now |
Beta Was this translation helpful? Give feedback.
-
hmm i don't see file uri's working - do you have a working curl for the gemini api working with url input? @icefox57 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@icefox57 your request is to disable url -> b64 but based on our testing the gemini api (google ai studio) doesn't accept url's if you have a script calling the google ai studio endpoint with a url - https://ai.google.dev/gemini-api/docs please can you share it, so we can work against that |
Beta Was this translation helpful? Give feedback.
-
Converting this to a discussion as it doesn't (currently) seem like a bug on litellm |
Beta Was this translation helpful? Give feedback.
-
What happened?
I encountered a problem when using litellm with Google Gemini models. My workflow involves distinguishing between smaller media files (processed as base64) and larger ones (uploaded to LeanCloud, with the URL passed to litellm). This distinction is made to avoid hitting the 20MB payload size limit, as documented.
However, even when I pass a URL (pointing to the uploaded file on LeanCloud) instead of base64 data, litellm still attempts to convert the file to base64 internally. This results in the following error for large files:
Environment
• litellm version: 1.55.4
• Python version: 3.9.x
• OS: Windows Server 2022
Relevant log output
Are you a ML Ops Team?
No
What LiteLLM version are you on ?
v1.55.4
Twitter / LinkedIn details
No response
Beta Was this translation helpful? Give feedback.
All reactions