Skip to content

[BUG] deepseek-v4-flash via opencode-go returns 403 / hangs, while deepseek-v4-pro and minimax-m3 work on the same key #40485

Description

@wqlooo1

Environment

  • Windows 11, OpenCode Desktop + TUI (latest)
  • Provider: opencode-go (Go plan)

Config status

  • Global config (~/.config/opencode/opencode.jsonc): clean, only $schema
  • No project-level opencode.json overrides
  • opencode-go API key present and valid

Repro steps

  1. Send a chat request with model deepseek-v4-flash to https://opencode.ai/zen/go/v1/chat/completions
  2. Observed: request hangs with no response (tested up to 60s+), and/or returns HTTP 403

Direct API test results (same key, same endpoint, same request body)

Model Result
deepseek-v4-flash HTTP 403 Forbidden, empty body (occasionally hangs/timeout before response)
deepseek-v4-pro HTTP 200, normal response
minimax-m3 HTTP 200, normal response
GET /zen/go/v1/models HTTP 200, deepseek-v4-flash is listed and served with the same key

Log evidence

(~/.local/share/opencode/log/opencode.log)

  • stream error ... providerID=opencode modelID=laguna-s-2.1-free ... error.error="AI_APICallError: Internal Server Error" (free route also affected earlier)
  • No client-side config or auth errors; network to opencode.ai:443 (Cloudflare) is fine

Impact

  • Requests to deepseek-v4-flash never complete in the UI (waited ~11 minutes), while free models and other Go paid models respond normally
  • small_model / title requests also fail when set to flash

Related: #40465, #40479, #40480

Metadata

Metadata

Assignees

No one assigned

    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