r/opencode • • 9d ago

Deepseek 4.1 Flash image support?

For both Opencode Go and Deepseek providers, the model for Deepseek 4.1 Flash 1017 is set to text only. At least for the Deepseek provider, 1017 now has image support. I did get the Deepseek provider working by patching the opencode config file. It would would nice if it was enabled by default now.

"provider": {
    "deepseek": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "DeepSeek",
      "options": {
        "baseURL": "https://api.deepseek.com",
        "apiKey": "{env:DEEPSEEK_API_KEY}"
      },
      "models": {
        "deepseek-v4-1-flash-1017": {
          "name": "DeepSeek V4.1 Flash 1017",
          "limit": {
            "context": 1000000,
            "output": 384000
          },
          "modalities": {
            "input": ["text", "image"],
            "output": ["text"]
          }
        },
[...]
2 Upvotes

8 comments sorted by

18

u/QuietPsychonaut 9d ago

I don't know what you're talking about. DeepSeek has image support by default on OpenCode. This has been the case for many many months. I use this feature regularly

-9

u/jadbox 9d ago

Not sure what to say, I'm running the latest version of OpenCode and until patched the config, OpenCode did not support image handling for DeepSeek 1017 for either Go or Deepseek providers. Maybe another person can confirm if it's either my machine or your machine issue?

12

u/QuietPsychonaut 9d ago

Have you by any chance upgraded from OpenCode v1 to v2 and maybe that carried a broken config?

2

u/severencir 8d ago

I too have not had issues pasting images to dsf 4.1 in opencode.

2

u/thevegit0 8d ago

i always had image support for deepseek flash free and 1017

1

u/ertaboy356b 8d ago

I've uploaded several docs like making it extract text from an image and it works fine.

1

u/shadowtheimpure 7d ago

Huh? I'm using OpenCode Desktop with OpenCode Go for DS 4.1 Flash 1017 and it's been using images just fine. Had to abandon a session and warn it about there being a limited number of images per request but that's about the worst of it.

1

u/mozkohor 9d ago

latest DeepSeek V4.1 flash definitely has image support