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
I get the following error when the agent attempts to read a .tga file:
messages.2.content.0.tool_result.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'
Strangely, I can only observe it happening when using one of the Anthropic models (e.g. Opus 4.5, Sonnet 4.5). Can't reproduce the issue with other models like Devstral Small 2.
Plugins
None
OpenCode version
1.1.36
Steps to reproduce
Simply ask the agent "Read the file example.tga" where example.tga is a valid TGA file.
Activity
github-actions commentedon Jan 26, 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 Mar 29, 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.