Open pilsnerbeer opened 4 months ago
I have this same issue, I can workaround with:
base64Image := base64.StdEncoding.EncodeToString(jpegBytes)
then llms.ImageURLPart(fmt.Sprintf("data:image/jpeg;base64,%s", base64Image))
Not sure if BinaryPart should just be supported anyway? Ideally it would somehow?
Trying to directly send a image/png to OpenAI completions API. (Model: Gpt-4o / Mini)
Snippet:
Returns Error:
This seems to be only problematic with OpenAI. Gemini and Ollama worked fine when i tested it with the same snippet. According to https://platform.openai.com/docs/guides/vision doc sending images directly to vision API shoudl be possible so the error is not clear to me