You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read tool accesses JPEG file but vision model hallucinates incorrect description (no actual image content processed) #11437
The read tool successfully locates and claims to read a JPEG image file. Instead of using the native vision model of the LLM, the read tool returns a base64 encoding of the image (not suitable for LLMs).
This causes the LLM to hallucinate image details.
OpenCode fails to recognize if a model has native vision capabilities.
Plugins
No response
OpenCode version
1.1.47
Steps to reproduce
Place a JPEG image file, (e.g. imgtest.jpg in the current directory, do not name it what the image has, as the LLM would guess correctly)
Ask the model to describe the image, do not give it any hints
The model fails to answer correctly, when asked what it received, it states it has received a bas64 string
Activity
github-actions commentedon Jan 31, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
github-actions commentedon Apr 2, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.