You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Route the built-in deepseek provider through the Responses API (native support for DeepSeek-V4-Flash-0731) #39992
DeepSeek officially supports the OpenAI Responses API for deepseek-v4-flash (live since 2026-07-31; docs: https://api-docs.deepseek.com/zh-cn/guides/responses_api), but opencode's built-in deepseek provider is hardwired to Chat Completions: models.dev pins it to @ai-sdk/openai-compatible, and the OpenAIResponses protocol (packages/llm/src/protocols/openai-responses.ts) is only wired for openai/xai/azure/github-copilot/amazon-bedrock.
Verified workaround
Define a custom provider in opencode.json whose ID is a responses-routed built-in (e.g. meta) with @ai-sdk/openai + baseURL: https://api.deepseek.com/v1. Requests then hit POST /v1/responses with reasoning: {effort} and KV-cache hits (verified via wire capture). Drawbacks: wrong effort tiers, no reasoning_options in config models, unrelated catalog models.
Known gaps
@ai-sdk/openai 3.0.84 never parses response.reasoning_text.delta → DeepSeek thinking text is silently dropped on the AI SDK path (model still reasons; reasoning_tokens are accounted). Only the native runtime (OPENCODE_EXPERIMENTAL_NATIVE_LLM=1 + provider ID openai/anthropic/opencode*) displays it.
Native OpenAIResponses protocol rejects effort max (OpenAI-spec-shaped; openai-options.ts:5-8 filters it) — but DeepSeek supports max → max and maps xhigh/medium → high.
deepseek-v4-pro Responses support lands Aug 2026; only deepseek-v4-flash today. Responses API is stateless (store/previous_response_id ignored).
Requested
Responses route for the deepseek profile in packages/llm (following providers/openai.ts: responses + chat selectors).
sdk.responses() loader for deepseek on the AI SDK path.
This issue might be a duplicate of existing issues. Please check:
[FEATURE]: Support Responses API for deepseek-v4-flash on opencode-go #39829: Requests Responses API support for deepseek-v4-flash through the opencode-go gateway — same underlying feature (routing DeepSeek to /v1/responses), but targeting the hosted gateway surface rather than the built-in provider. These two issues may be best tracked together or resolved in tandem.
Activity
github-actions commentedon Aug 1, 2026
This issue might be a duplicate of existing issues. Please check:
deepseek-v4-flashthrough the opencode-go gateway — same underlying feature (routing DeepSeek to/v1/responses), but targeting the hosted gateway surface rather than the built-in provider. These two issues may be best tracked together or resolved in tandem.github-actions commentedon Oct 1, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.