litellm icon indicating copy to clipboard operation
litellm copied to clipboard

ollama: vision: remove prefix info from base64 data

Open jakobdylanc opened this issue 10 months ago • 2 comments

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

jakobdylanc avatar Apr 11 '24 02:04 jakobdylanc

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

vercel[bot] avatar Apr 11 '24 02:04 vercel[bot]

This PR might be better: https://github.com/BerriAI/litellm/pull/2888

jakobdylanc avatar Apr 11 '24 03:04 jakobdylanc