deepseek-chat模型适用于大多数基本用例。deepseek-reasoner模型适用于复杂的推理和多步任务。
认证
设置您的DEEPSEEK_API_KEY 环境变量。从此处获取您的密钥:here。
示例
在您的Agent 中使用 DeepSeek:
在此处查看更多示例:here。
参数
DeepSeek 还支持 OpenAI 的参数。Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
了解如何在 Agno 中使用 DeepSeek 模型。
deepseek-chat 模型适用于大多数基本用例。deepseek-reasoner 模型适用于复杂的推理和多步任务。DEEPSEEK_API_KEY 环境变量。从此处获取您的密钥:here。
export DEEPSEEK_API_KEY=***
setx DEEPSEEK_API_KEY ***
Agent 中使用 DeepSeek:
from agno.agent import Agent, RunResponse
from agno.models.deepseek import DeepSeek
agent = Agent(model=DeepSeek(), markdown=True)
# 在终端中打印响应
agent.print_response("Share a 2 sentence horror story.")
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
id | str | "deepseek-chat" | 用于生成响应的特定模型 ID。 |
name | str | "DeepSeek" | DeepSeek 模型的名称标识符。 |
provider | str | "DeepSeek" | 模型的提供商。 |
api_key | Optional[str] | - | 用于认证 DeepSeek 服务请求的 API 密钥。从环境变量 DEEPSEEK_API_KEY 中检索。 |
base_url | str | "https://api.deepseek.com" | 向 DeepSeek 服务发送 API 请求的基础 URL。 |
DeepSeek 还支持 OpenAI 的参数。