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
Bad request ... input should be image/jpeg ... #23990
Bad Request: 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'
Plugins
No response
OpenCode version
1.14.21
1.14.22
Steps to reproduce
Ask to update something in the spec of a custom image format
the spec file is read
message Bad Request: 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'appears using Claude Sonnet 4.6 (but similar error messages also come with Gemini/ChatGPT, while Big Pickle seems to work)
I've updated to the latest version and I've added explicitly to agents.md not to send, retrieve ety. any images
Activity
github-actions commentedon Apr 23, 2026
This issue might be a duplicate of existing issues. Please check:
Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp') when OpenCode reads an unsupported image format (AVIF/custom format) and forwards it to the API — the root cause and symptoms appear identical.Please review those issues and, if they cover your case, consider adding a comment there instead.
FlominatorTM commentedon Apr 23, 2026
Maybe also related to #23983
FlominatorTM commentedon Apr 24, 2026
Problem persists with 1.14.22. Explicitly telling OpenCode to avoid the spec file works (except when wanting it to be updated)
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.