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
Support OpenAI-compatible providers (Kimi, DeepSeek) with chat-completions API #18050
OpenCode uses /v1/responses endpoint by default, but many popular providers (Kimi, DeepSeek, Gemini via OpenAI-compatible mode) only support /v1/chat/completions, resulting in 404 errors.
Affected Providers
Kimi (Moonshot): Returns 404 for /v1/responses - the endpoint does not exist
DeepSeek: Authentication fails due to endpoint mismatch
Gemini (OpenAI-compatible): Similar issues with endpoint compatibility
Error Examples
Kimi
POST https://api.moonshot.cn/v1/responses → 404 Not Found
DeepSeek
Unauthorized: Authentication Fails (governor)
Proposed Solution
Add apiType configuration option to allow providers to specify which API endpoint to use.
No issue template was used. This appears to be a feature request, but it doesn't use the Feature Request template (title should start with [FEATURE]:, and the template's verification checkbox and description fields must be filled in).
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
Activity
github-actions commentedon Mar 18, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
[FEATURE]:, and the template's verification checkbox and description fields must be filled in).Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
/v1/chat/completions, not/v1/responses)If you believe this was flagged incorrectly, please let a maintainer know.
feat: support OpenAI-compatible providers with chat-completions API
github-actions commentedon Mar 18, 2026
This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.
Feel free to open a new issue that follows our issue templates.
rekram1-node commentedon Mar 18, 2026
ai-sdk/openai-compatible doesn't support responses api, so that shouldn't happen unless u are using ai-sdk/openai