litellm icon indicating copy to clipboard operation
litellm copied to clipboard

ollama: vision: remove prefix info from base64 data

Open jakobdylanc opened this issue 2 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