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
Registry-sourced models resolve empty input capabilities; file-part rejection echoes wrong media type #44639
opencode 1.18.21, provider opencode (Zen), model x-preview-f-free (registry/free tier)
Summary
For registry-sourced models, request-time capability resolution comes up empty even though the model's provider.toml in models.dev declares vision:
[modalities]
input = ["text", "image", "video"]
The empty resolution causes valid image file parts to be rejected locally with a misleading error, and the error text reports a placeholder media type instead of the part's actual type.
Repro
Send a message with a file part whose actual mime is image/jpeg (verified: valid JPEG bytes, data:image/jpeg;base64,/9j/4AA…):
After that, the exact same part is accepted and the model describes the image correctly.
Asks
Derive request-time capabilities for registry-sourced models from the provider.toml modalities (or provider-advertised capabilities) instead of resolving empty.
Echo the actual part media type in functionality rejections.
Ideally, log which source decided the capability set when a part is refused — this class of misdiagnosis cost us a long debugging session (full write-up available if useful).
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.
Activity
github-actions commentedon Aug 24, 2026
This issue might be a duplicate of existing issues. Please check:
falseand image parts are rejected even on vision-capable models.'file part media type application/octet-stream' functionality not supported.error #38794: Same error message ('file part media type application/octet-stream' functionality not supported) when mentioning files in the workspace.application/octet-streamerror for image attachments on vision-capable models (OpenAI GPT family), where the MIME type is not being resolved correctly at request time.thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊