anomalyco / anomalyco/opencode
[BUG] deepseek-v4-flash via opencode-go returns 403 / hangs, while deepseek-v4-pro and minimax-m3 work on the same key
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
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.jsonoverrides opencode-goAPI key present and valid
Repro steps
- Send a chat request with model
deepseek-v4-flashtohttps://opencode.ai/zen/go/v1/chat/completions - 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-flashnever 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin with the direct requests to https://opencode.ai/zen/go/v1/chat/completions, comparing deepseek-v4-flash with deepseek-v4-pro and minimax-m3 using the same key and body. Review ~/.local/share/opencode/log/opencode.log alongside the related issues #40465, #40479, and #40480. Done means establishing whether the failure is in OpenCode's handling or the provider route and documenting a reproducible resolution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100