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]: Auto image-to-text transcription via multimodal model for non-multimodal providers #22828
I have searched for existing issues and confirmed this is not a duplicate
I have read the contributing guidelines
Problem
When using a non-multimodal LLM provider (e.g., text-only models) in OpenCode, sending an image attachment results in the model being unable to understand or process the image. There is no automatic fallback mechanism to:
Detect that the current model does not support image input
Automatically route the image to a configured multimodal model for transcription
Convert the image content to text description
Pass the text description to the primary non-multimodal model
Current Behavior
User sends an image in the conversation
If the active model does not support image/vision input, the image is either ignored or causes an error
No automatic image transcription fallback exists
Expected Behavior
When a non-multimodal model receives an image, OpenCode should:
Detect the model's modalities do not include image input
Use a separately configured image caption model (multimodal model) to describe the image
Replace the image with the text description in the context
Continue the conversation with the primary model using the transcribed text
Suggested Configuration
Add a new top-level config option in opencode.json:
Unlike those previous requests, this proposal includes a concrete configuration design and leverages the existing modalities field already in the schema, making it straightforward to implement.
Use Case
Many users use cost-effective text-only models as their primary coding assistant, but still need image understanding (e.g., reading screenshots, diagrams, UI mockups). Having to manually switch models for image-related tasks is inconvenient. An automatic image transcription pipeline would provide the best of both worlds.
changed the title [-]Feature Request: Auto image-to-text transcription via multimodal model for non-multimodal providers[/-][+][FEATURE]: Auto image-to-text transcription via multimodal model for non-multimodal providers[/+]on Apr 16, 2026
Thanks for updating the issue! It now follows the contributing guidelines and feature request template. We appreciate you taking the time to make it compliant.
Activity
github-actions commentedon Apr 16, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:(e.g.,[FEATURE]: Auto image-to-text transcription via multimodal model for non-multimodal providers)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:
If you believe this was flagged incorrectly, please let a maintainer know.
[-]Feature Request: Auto image-to-text transcription via multimodal model for non-multimodal providers[/-][+][FEATURE]: Auto image-to-text transcription via multimodal model for non-multimodal providers[/+]github-actions commentedon Apr 16, 2026
Thanks for updating the issue! It now follows the contributing guidelines and feature request template. We appreciate you taking the time to make it compliant.
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.