DeepSeek
Configure DB-GPT to use DeepSeek's language models for chat and reasoning.
Prerequisitesâ
- A DeepSeek API key
- DB-GPT installed with
proxy_openaiextra
Install dependenciesâ
uv sync --all-packages \
--extra "base" \
--extra "proxy_openai" \
--extra "rag" \
--extra "storage_chromadb" \
--extra "dbgpts"
DeepSeek does not provide embedding models. The default config uses a HuggingFace embedding model (BAAI/bge-large-zh-v1.5). If using this, also add:
uv sync --all-packages \
--extra "base" \
--extra "proxy_openai" \
--extra "rag" \
--extra "storage_chromadb" \
--extra "dbgpts" \
--extra "hf" \
--extra "cpu"
Configurationâ
Edit configs/dbgpt-proxy-deepseek.toml:
[models]
[[models.llms]]
name = "deepseek-v4-pro"
provider = "proxy/deepseek"
api_key = "your-deepseek-api-key"
# Disable V4-Pro thinking mode for strict ReAct output parsing.
thinking_enabled = false
[[models.embeddings]]
name = "BAAI/bge-large-zh-v1.5"
provider = "hf"
# Uncomment to use a local model path:
# path = "models/bge-large-zh-v1.5"
Available modelsâ
| Model | Config name | Notes |
|---|---|---|
| DeepSeek-V4-Pro | deepseek-v4-pro | 1M context, advanced reasoning, coding, and agent tasks |
| DeepSeek-R1 | deepseek-reasoner | Strong reasoning, chain-of-thought |
| DeepSeek-V3 | deepseek-chat | General purpose chat |
For ReAct agents, keep thinking_enabled = false with deepseek-v4-pro. DeepSeek
V4-Pro enables thinking mode by default, which can add reasoning blocks before the
strict Thought/Action/Action Input response format.
The official DeepSeek API does not support tool_choice="required" or a named
tool choice in thinking mode. The DeepSeek provider automatically disables thinking
for these requests before sending them, while preserving the requested tool choice.
This also applies when thinking_enabled = true; other requests retain their
existing thinking settings. No extra configuration is needed when switching models.
This adaptation applies only to the DeepSeek provider when its actual API endpoint
is api.deepseek.com. Other providers and third-party API endpoints retain their
existing behavior; their tool-calling capabilities depend on their own API contract.
Start the serverâ
uv run dbgpt start webserver --config configs/dbgpt-proxy-deepseek.toml
Troubleshootingâ
| Issue | Solution |
|---|---|
AuthenticationError | Verify your DeepSeek API key at platform.deepseek.com |
| Embedding download slow | Pre-download the model or use a mirror (UV_INDEX_URL) |
| Out of memory for embedding | Use --extra "cpu" to run embeddings on CPU |
What's nextâ
- Getting Started â Full setup walkthrough
- Model Providers â Try other providers