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
Feature Request: Automatic Image Vision Processing for Non-Vision Models #21004
Feature Request: Automatic Image Vision Processing for Non-Vision Models
Problem
When users paste images directly into the OpenCode input field, OpenCode sends the image data to the AI model. However, many models (like MiniMax via API) don't support image input, resulting in errors like:
ERROR: Cannot read "image.png" (this model does not support image input)
This creates a poor user experience where:
User pastes an image
OpenCode sends it to the model
Model rejects it with an error
User has no way to analyze the image
Proposed Solution
Add an automatic image processing feature that:
Detects when a user pastes an image (vs. text)
Checks if the target model supports vision (via model capabilities config)
If model doesn't support vision:
Automatically call a local vision API (e.g., Ollama with vision model, or local Qwen2.5-Vision)
Get the image description
Send the description as text to the target model
Alternative: Vision API Integration
Allow users to configure a fallback vision provider in their OpenCode config:
This isn't a new issue, although I do really want to move forward with solving it. Mimo v2 Pro (which doesn't support image recognition) should be able to invoke Mimo Omni when it detects an image.
Actually, Minimax has an MCP for image recognition that follows exactly this approach, but it seems that due to Opencode limitations, the image path must be explicitly specified for it to call the corresponding tool. Also, does Opencode currently have some automatic image translation logic? When I try to paste a path, it pastes the file itself.
Activity
github-actions commentedon Apr 4, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:(current title uses "Feature Request:" instead)Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
Cannot read "image.png" (this model does not support image input)) and requests a fallback routing mechanism for non-vision modelsIf you believe this was flagged incorrectly, please let a maintainer know.
jensenojs commentedon Apr 4, 2026
This isn't a new issue, although I do really want to move forward with solving it. Mimo v2 Pro (which doesn't support image recognition) should be able to invoke Mimo Omni when it detects an image.
Actually, Minimax has an MCP for image recognition that follows exactly this approach, but it seems that due to Opencode limitations, the image path must be explicitly specified for it to call the corresponding tool. Also, does Opencode currently have some automatic image translation logic? When I try to paste a path, it pastes the file itself.
github-actions commentedon Apr 4, 2026
This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.
Feel free to open a new issue that follows our issue templates.