tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
3.78k stars 523 forks source link

The "gemini-1.0-pro-vision-latest" model is not functioning properly #776

Open kkkunny opened 2 months ago

kkkunny commented 2 months ago

When I call this model and correctly pass in a URL of an image, it displays "googleapi: Error 400: Add an image to use models/gemini-1.0-pro-vision-latest, or switch your model to a text model." I believe the cause of this error is that the response header for accessing the image URL contains 'content-type': 'application/octet-stream'.