Description
A direct request to the documented OpenCode Go endpoint returns HTTP 400 for the documented model ID deepseek-v4-flash.
This was reproduced with curl, outside Hermes. The API key was accepted; it is redacted and not included here.
Expected: a successful response, or an error identifying a different invalid field.
Actual: the response says the only supported names are deepseek-v4-pro or deepseek-v4-flash, then says that deepseek-v4-flash was passed.
Docs: https://opencode.ai/docs/go/
Plugins
N/A - direct HTTP request; no plugins
OpenCode version
N/A - direct OpenCode Go HTTP API request; no OpenCode CLI invoked
Steps to reproduce
- Set a valid OpenCode Go API key in OPENCODE_GO_KEY.
- Send this direct request. Replace the placeholder locally; no real key is included here.
curl -sS "https://opencode.ai/zen/go/v1/chat/completions" -H "Authorization: Bearer <redacted>" -H "Content-Type: application/json" --data-raw "{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"OK"}]}"
- Observe HTTP 400:
Error from provider (Console Go): Upstream request failed: [invalid_request_error] The supported API model names are deepseek-v4-pro or deepseek-v4-flash, but you passed deepseek-v4-flash.
Screenshot and/or share link
No response
Operating System
macOS
Terminal
zsh (terminal emulator not recorded)
Description
A direct request to the documented OpenCode Go endpoint returns HTTP 400 for the documented model ID
deepseek-v4-flash.This was reproduced with curl, outside Hermes. The API key was accepted; it is redacted and not included here.
Expected: a successful response, or an error identifying a different invalid field.
Actual: the response says the only supported names are
deepseek-v4-proordeepseek-v4-flash, then says thatdeepseek-v4-flashwas passed.Docs: https://opencode.ai/docs/go/
Plugins
N/A - direct HTTP request; no plugins
OpenCode version
N/A - direct OpenCode Go HTTP API request; no OpenCode CLI invoked
Steps to reproduce
Screenshot and/or share link
No response
Operating System
macOS
Terminal
zsh (terminal emulator not recorded)