Setup
Basic Usage
Parameters
str
default:"deepseek-chat"
Model identifier. Common values:
deepseek-chat, deepseek-reasoner.str
DeepSeek API key. Defaults to the
DEEPSEEK_API_KEY environment variable.str
default:"https://api.deepseek.com"
DeepSeek API base URL.
float
Sampling temperature.
int
Maximum output tokens.
Reasoning Support
DeepSeek models can produce reasoning content alongside their response:Streaming
Async Usage
DeepSeek does not support native structured outputs (
supports_native_structured_outputs = False). Structured output requests are handled via prompt engineering with JSON Schema instructions.