Description
The model deepseek-v4-flash supports image input (multimodal), but the model definition in OpenCode does not have image listed in its input modalities.
Impact
When a user sends an image to OpenCode while using deepseek-v4-flash, the following error is returned:
ERROR: Cannot read "image.png" (this model does not support image input). Inform the user.
Expected Behavior
deepseek-v4-flash should have image: true in its capabilities.input so that OpenCode allows sending images when using this model.
Workaround
Users can add a modality override in their opencode.jsonc config:
This should be added to the upstream model definition in models.dev or the snapshot, so it works out of the box.
Description
The model
deepseek-v4-flashsupports image input (multimodal), but the model definition in OpenCode does not haveimagelisted in its input modalities.Impact
When a user sends an image to OpenCode while using deepseek-v4-flash, the following error is returned:
Expected Behavior
deepseek-v4-flash should have
image: truein itscapabilities.inputso that OpenCode allows sending images when using this model.Workaround
Users can add a modality override in their
opencode.jsoncconfig:{ "provider": { "deepseek": { "models": { "deepseek-v4-flash": { "modalities": { "input": ["text", "image"], "output": ["text"] } } } } } }This should be added to the upstream model definition in
models.devor the snapshot, so it works out of the box.