deepseek-chat
model is good for most basic use-cases.deepseek-reasoner
model is good for complex reasoning and multi-step tasks.
Authentication
Set yourDEEPSEEK_API_KEY
environment variable. Get your key from here.
Example
UseDeepSeek
with your Agent
:
View more examples here.
Parameters
Parameter | Type | Default | Description |
---|---|---|---|
id | str | "deepseek-chat" | The id of the DeepSeek model to use |
name | str | "DeepSeek" | The name of the model |
provider | str | "DeepSeek" | The provider of the model |
api_key | Optional[str] | None | The API key for DeepSeek (defaults to DEEPSEEK_API_KEY env var) |
base_url | str | "https://api.deepseek.com" | The base URL for the DeepSeek API |
DeepSeek
extends the OpenAI-compatible interface and supports most parameters from the OpenAI model.
Note: DeepSeek’s support for structured outputs is currently not fully compatible, so supports_native_structured_outputs
is set to False
.
Available Models
deepseek-chat
- General-purpose conversational model, good for most use casesdeepseek-reasoner
- Advanced reasoning model optimized for complex problem-solving and multi-step tasks