Skip to content

[Github Copilot] Anthropic models can't see images? #5291

Closed

Description

@agusmdev

Question

I’m using a Copilot subscription on OpenCode. Everything works fine, but it seems that the Anthropic models are not able to “see” images.
Is this something I can fix on my end, or is it more likely a misconfiguration in the GitHub Copilot + Anthropic integration in OpenCode? Models from OpenAI handle vision correctly.

model "claude-haiku-4.5" not supported for vision
model "claude-sonnet-4.5" not supported for vision
model "claude-opus-4.5" not supported for vision

Activity

  1. changed the title [-][Github Copilot] model "claude-opus-4.5" not supported for vision[/-] [+][Github Copilot] Anthropic models can't see images?[/+] on Dec 9, 2025
  2. github-actions commented on Dec 9, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  3. self-assigned this
    on Dec 9, 2025
  4. rekram1-node commented on Dec 9, 2025

    @rekram1-node
    Collaborator

    ill take a look

  5. aziham commented on Dec 10, 2025

    @aziham

    ill take a look

    I'm having the same issue and it is not limited to anthropic models, I tried gemini 3 pro and it is having the same issue with images. ~2 days ago images used to work fine, I think a recent update is the cause of this bug.

  6. rekram1-node commented on Dec 10, 2025

    @rekram1-node
    Collaborator

    @aziham what bug are you seeing? How do I reproduce

  7. aziham commented on Dec 10, 2025

    @aziham

    @rekram1-node

    Image Image

    This is what I'm getting when using the models in opencode (it used to work just fine).


    Image

    I don't think the issue is related to the models, I tested them with Cherry Studio client and they work just fine

  8. rekram1-node commented on Dec 10, 2025

    @rekram1-node
    Collaborator

    what provider are you using

  9. aziham commented on Dec 10, 2025

    @aziham

    I'm using custom providers with @ai-sdk/openai-compatible to unify all my providers into one OpenAI-compatible endpoint (proxy running on localhost).

    Config snippet:

    provider: {
      proxy: {
        npm: @ai-sdk/openai-compatible,
        options: {
          baseURL: http://localhost:8888/v1
        },
        models: {
          claude-opus-4-5: { ... }
        }
      }
    }
    
  10. rekram1-node commented on Dec 10, 2025

    @rekram1-node
    Collaborator

    @aziham add this to any model definition that supports images:

    "modalities": {
                "input": ["text", "image"], // consider adding "pdf" too if it supports pdfs
                "output": ["text"], 
              },
    
  11. aziham commented on Dec 10, 2025

    @aziham

    @rekram1-node adding modalities fixed the issue, thanks Aiden.

  12. agusmdev commented on Dec 10, 2025

    @agusmdev
    Author

    @aziham add this to any model definition that supports images:

    "modalities": {
                "input": ["text", "image"], // consider adding "pdf" too if it supports pdfs
                "output": ["text"], 
              },
    

    Can I make a fix like this but for github copilot integration?

  13. rekram1-node commented on Dec 10, 2025

    @rekram1-node
    Collaborator

    @agusmdev I can't replicate your issue, images read fine?

    Image
  14. agusmdev commented on Dec 10, 2025

    @agusmdev
    Author
    Image @rekram1-node my issue is when I copy paste an image. I have the latest version of OpenCode, and my GF is also facing the same issue, maybe it's something we have to activate in our github-copilot sub?
  15. rekram1-node commented on Dec 10, 2025

    @rekram1-node
    Collaborator
    Image

    @agusmdev I still can't replicate your issue

  16. rekram1-node commented on Dec 10, 2025

    @rekram1-node
    Collaborator

    But that error you are seeing comes directly from copilot, not from us so maybe there is something you need to specify in your settings? Or maybe your tier subscription doesnt allow it?

  17. agusmdev commented on Dec 10, 2025

    @agusmdev
    Author

    But that error you are seeing comes directly from copilot, not from us so maybe there is something you need to specify in your settings? Or maybe your tier subscription doesnt allow it?

    Yeah it seems that something like this is happening, will take a look. Thank you for you help!!

  18. rekram1-node commented on Dec 10, 2025

    @rekram1-node
    Collaborator

    Yeah no problem! Going to close since this seems not to be an opencode issue, but we can reopen if appropriate ofc

  19. gdw2 commented on Dec 30, 2025

    @gdw2

    Re github models, the image mode is still in "preview". If you're using a subscription under an org, they may have preview features turned off.

  20. JosXa commented on Feb 3, 2026

    @JosXa
    Contributor

    Re github models, the image mode is still in "preview". If you're using a subscription under an org, they may have preview features turned off.

    It's ambiguously called "Editor Preview Features" (GHE). Turn it on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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