r/opencode • • 12d 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"]
          }
        },
[...]
3 Upvotes

8 comments sorted by

View all comments

Show parent comment

12

u/QuietPsychonaut 12d ago

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