litellm
litellm copied to clipboard
ollama: vision: remove prefix info from base64 data
When using ollama with the llava vision model, you will get an error when including prefix info in the base64 image data (ex. data:image/jpeg;base64,
) per the OpenAI API format. LiteLLM can remove this prefix info and prevent the error.
Solves this issue: https://github.com/BerriAI/litellm/issues/1427
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
litellm | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 11, 2024 2:54am |
This PR might be better: https://github.com/BerriAI/litellm/pull/2888