深度求索 DeepSeek2
可用模型清单:https://platform.deepseek.com/api-docs/zh-cn/pricing
import Agently
agent = (
Agently.create_agent()
.set_settings("current_model", "OAIClient")
.set_settings("model.OAIClient.auth", { "api_key": "<Your-API-Key>" })
# 使用DeepSeek的API Base URL
.set_settings("model.OAIClient.url", "https://api.deepseek.com/v1")
# 如果需要切换模型,可参考模型清单:https://platform.deepseek.com/api-docs/zh-cn/pricing
.set_settings("model.OAIClient.options", { "model": "deepseek-chat" })
)