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

Closed
opened 2026-02-16 17:40:03 -05:00 by yindo · 18 comments
Owner

Originally created by @agusmdev on GitHub (Dec 9, 2025).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @agusmdev on GitHub (Dec 9, 2025). Originally assigned to: @rekram1-node on GitHub. ### 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`
yindo closed this issue 2026-02-16 17:40:03 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 9, 2025):

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

  • #2944: Getting "AI_APICallError: Invalid API parameter, please check the documentation." in opencode with zAI glm 4.6 - This issue also involves vision MCP server with images and Anthropic models not handling vision correctly.

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

@github-actions[bot] commented on GitHub (Dec 9, 2025): This issue might be a duplicate of existing issues. Please check: - #2944: Getting "AI_APICallError: Invalid API parameter, please check the documentation." in opencode with zAI glm 4.6 - This issue also involves vision MCP server with images and Anthropic models not handling vision correctly. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 9, 2025):

ill take a look

@rekram1-node commented on GitHub (Dec 9, 2025): ill take a look
Author
Owner

@aziham commented on GitHub (Dec 9, 2025):

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.

@aziham commented on GitHub (Dec 9, 2025): > 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.
Author
Owner

@rekram1-node commented on GitHub (Dec 9, 2025):

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

@rekram1-node commented on GitHub (Dec 9, 2025): @aziham what bug are you seeing? How do I reproduce
Author
Owner

@aziham commented on GitHub (Dec 9, 2025):

@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

@aziham commented on GitHub (Dec 9, 2025): @rekram1-node <img width="1017" height="848" alt="Image" src="https://github.com/user-attachments/assets/ff14c1ba-3890-4f01-b947-1954afe31556" /> <img width="1024" height="657" alt="Image" src="https://github.com/user-attachments/assets/284fd2bd-7a19-4b98-910b-6e8a4938d86e" /> This is what I'm getting when using the models in opencode (it used to work just fine). --- <img width="1565" height="928" alt="Image" src="https://github.com/user-attachments/assets/c74351a5-33c4-401e-9a2e-89531804c4db" /> I don't think the issue is related to the models, I tested them with Cherry Studio client and they work just fine
Author
Owner

@rekram1-node commented on GitHub (Dec 9, 2025):

what provider are you using

@rekram1-node commented on GitHub (Dec 9, 2025): what provider are you using
Author
Owner

@aziham commented on GitHub (Dec 9, 2025):

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: { ... }
    }
  }
}
@aziham commented on GitHub (Dec 9, 2025): 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: { ... } } } } ```
Author
Owner

@rekram1-node commented on GitHub (Dec 9, 2025):

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

"modalities": {
            "input": ["text", "image"], // consider adding "pdf" too if it supports pdfs
            "output": ["text"], 
          },
@rekram1-node commented on GitHub (Dec 9, 2025): @aziham add this to any model definition that supports images: ``` "modalities": { "input": ["text", "image"], // consider adding "pdf" too if it supports pdfs "output": ["text"], }, ```
Author
Owner

@aziham commented on GitHub (Dec 10, 2025):

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

@aziham commented on GitHub (Dec 10, 2025): @rekram1-node adding modalities fixed the issue, thanks Aiden.
Author
Owner

@agusmdev commented on GitHub (Dec 10, 2025):

@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?

@agusmdev commented on GitHub (Dec 10, 2025): > [@aziham](https://github.com/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?
Author
Owner

@rekram1-node commented on GitHub (Dec 10, 2025):

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

Image
@rekram1-node commented on GitHub (Dec 10, 2025): @agusmdev I can't replicate your issue, images read fine? <img width="1811" height="673" alt="Image" src="https://github.com/user-attachments/assets/252af70a-0c60-4e6f-85bc-5e5a87813c08" />
Author
Owner

@agusmdev commented on GitHub (Dec 10, 2025):

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?
@agusmdev commented on GitHub (Dec 10, 2025): <img width="613" height="488" alt="Image" src="https://github.com/user-attachments/assets/43e7c809-8065-4ecc-999b-c5eb31513f47" /> @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?
Author
Owner

@rekram1-node commented on GitHub (Dec 10, 2025):

Image

@agusmdev I still can't replicate your issue

@rekram1-node commented on GitHub (Dec 10, 2025): <img width="1145" height="1312" alt="Image" src="https://github.com/user-attachments/assets/1d9c77b6-1e6f-48b1-b44c-e88414db896f" /> @agusmdev I still can't replicate your issue
Author
Owner

@rekram1-node commented on GitHub (Dec 10, 2025):

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?

@rekram1-node commented on GitHub (Dec 10, 2025): 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?
Author
Owner

@agusmdev commented on GitHub (Dec 10, 2025):

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!!

@agusmdev commented on GitHub (Dec 10, 2025): > 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!!
Author
Owner

@rekram1-node commented on GitHub (Dec 10, 2025):

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

@rekram1-node commented on GitHub (Dec 10, 2025): Yeah no problem! Going to close since this seems not to be an opencode issue, but we can reopen if appropriate ofc
Author
Owner

@gdw2 commented on GitHub (Dec 29, 2025):

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.

@gdw2 commented on GitHub (Dec 29, 2025): 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.
Author
Owner

@JosXa commented on GitHub (Feb 3, 2026):

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.

@JosXa commented on GitHub (Feb 3, 2026): > 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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3431