Skip to content

feat: add DeepSeek AI provider#3

Open
ZgrK wants to merge 2 commits intoBatuhanK:mainfrom
ZgrK:feat/deepseek-provider
Open

feat: add DeepSeek AI provider#3
ZgrK wants to merge 2 commits intoBatuhanK:mainfrom
ZgrK:feat/deepseek-provider

Conversation

@ZgrK
Copy link
Copy Markdown

@ZgrK ZgrK commented May 7, 2026

Summary

  • Adds DeepSeek as a new AI provider alongside Kimi, Copilot, ZAI, and Codex
  • Uses official @ai-sdk/deepseek so reasoning_content is handled correctly and requests hit /chat/completions (DeepSeek does not implement OpenAI's /responses endpoint, so naive @ai-sdk/openai with custom baseURL hits 404)
  • Models exposed: deepseek-v4-flash, deepseek-v4-pro

Changes

  • Wire provider through AgentManager (active + title model) and LlmApiServer
  • Persist deepseekApiKey in SettingsStore (key ai_deepseek_key)
  • Crawl DeepSeek key from ~/.local/share/opencode/auth.json
  • Settings UI: provider + model selector entries, API key input with show/hide, crawl preview row

Test plan

  • Settings → AI Providers, switch to DeepSeek, paste key, save
  • Pick deepseek-v4-flash and run a chat — verify response streams (no AI_NoOutputGeneratedError)
  • Pick deepseek-v4-pro with a reasoning prompt — verify completion
  • Crawl from OpenCode imports DeepSeek key when present in auth.json
  • LLM API server /v1/complete works with deepseek provider active

ZgrK added 2 commits May 7, 2026 23:36
Adds DeepSeek as a new AI provider alongside Kimi, Copilot, ZAI, and Codex.
Uses official @ai-sdk/deepseek so reasoning_content is handled correctly
and requests hit /chat/completions (DeepSeek does not implement OpenAI's
/responses endpoint).

Models: deepseek-v4-flash, deepseek-v4-pro.

- Wire provider through AgentManager (active + title model) and LlmApiServer
- Persist deepseekApiKey in SettingsStore
- Crawl deepseek key from opencode auth.json
- Settings UI: provider/model selector entries, API key input, crawl preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant