GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Auto image-to-text transcription via multimodal model for non-multimodal providers · Issue #22828 · anomalyco/opencode

[FEATURE]: Auto image-to-text transcription via multimodal model for non-multimodal providers #22828

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Auto image-to-text transcription via multimodal model for non-multimodal providers#22828
Copy link
Assignees
jlongster

Description

@RoyougiShiki
RoyougiShiki
opened on Apr 16, 2026
Issue body actions
  • 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:

  1. Detect that the current model does not support image input
  2. Automatically route the image to a configured multimodal model for transcription
  3. Convert the image content to text description
  4. 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:

  1. Detect the model's modalities do not include image input
  2. Use a separately configured image caption model (multimodal model) to describe the image
  3. Replace the image with the text description in the context
  4. Continue the conversation with the primary model using the transcribed text

Suggested Configuration

Add a new top-level config option in opencode.json:

{
  "image_transcription_model": "dmxapi/glm-4.1v-thinking-flash"
}

Or within the provider's model definition, allow marking a model as the image transcription provider:

{
  "provider": {
    "dmxapi": {
      "models": {
        "glm-5.1": {
          "name": "glm-5.1"
        },
        "glm-4.1v-thinking-flash": {
          "name": "glm-4.1v-thinking-flash",
          "modalities": {
            "input": ["text", "image"],
            "output": ["text"]
          },
          "use_for_image_transcription": true
        }
      }
    }
  }
}

Related Issues

  • Feature Request: Automatic Image Vision Processing for Non-Vision Models #21004: Similar request but was closed as out of scope. However, this feature is increasingly important as more users combine cost-effective text-only models with occasional image understanding needs.
  • Clipboard images routed directly to model instead of MCP when model lacks vision support #18437: Related issue about image routing when model lacks vision support.

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.

Environment

  • OpenCode version: latest (via npm)
  • OS: Windows
  • Primary model: text-only (via OpenAI-compatible provider)
  • Available multimodal model: GLM-4.1V-Thinking-Flash (via same provider)
Reacted by hppsc1215, Oscar Arzola and Wang Jinchao
Reacted by hppsc1215 and Oscar Arzola

Activity

  1. github-actions commented on Apr 16, 2026

    @github-actions
    github-actionsBot
    on Apr 16, 2026 – with GitHub Actions
    Contributor
    More actions

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The title should start with [FEATURE]: (e.g., [FEATURE]: Auto image-to-text transcription via multimodal model for non-multimodal providers)
    • Feature request issues require a verification checkbox confirming you've searched for existing issues and read the contributing guidelines

    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:

    • Feature Request: Automatic Image Vision Processing for Non-Vision Models #21004: "Feature Request: Automatic Image Vision Processing for Non-Vision Models" (closed) — very similar request for automatic vision processing fallback for non-vision models
    • Clipboard images routed directly to model instead of MCP when model lacks vision support #18437: "Clipboard images routed directly to model instead of MCP when model lacks vision support" (closed) — related issue about image routing when model lacks vision support

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. github-actions
    added
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Apr 16, 2026
  3. github-actions
    assigned
    rekram1-node
    on Apr 16, 2026
  4. github-actions
    added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    windows
    on Apr 16, 2026
  5. RoyougiShiki
    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
  6. github-actions
    removed
    needs:complianceThis means the issue will auto-close after 2 hours.
    on Apr 16, 2026
  7. github-actions commented on Apr 16, 2026

    @github-actions
    github-actionsBot
    on Apr 16, 2026 – with GitHub Actions
    Contributor
    More actions

    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.

  8. thdxr
    removed
    windows
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  9. thdxr
    assigned
    jlongster
    and unassigned
    rekram1-node
    on May 3, 2026
  10. Neclyon
    marked [FEATURE]: Please add an independent vision model config line #31117 as a duplicate of this issue on Jun 6, 2026
  11. github-actions commented on Jul 3, 2026

    @github-actions
    github-actionsBot
    on Jul 3, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

  12. github-actions
    closed this as not plannedon Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jlongster
    jlongster

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.