本指南将帮助您开始使用 DeepSeek’s hosted 聊天模型.Documentation Index
Fetch the complete documentation index at: https://nvd-54.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
概述
集成详情
| 类 | 包 | 可序列化 | JS 支持 | 下载量 | 版本 |
|---|---|---|---|---|---|
ChatDeepSeek | langchain-deepseek | beta | ✅ |
模型功能
| Tool calling | Structured output | Image input | 音频输入 | 视频输入 | Token-level streaming | 原生异步 | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|---|
| ✅ | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ | ❌ |
DeepSeek-R1, specified via
model="deepseek-reasoner", does not support tool calling or structured output. Those features are supported by DeepSeek-V3 (specified via model="deepseek-chat").设置
要访问 DeepSeek 模型,您需要创建一个 DeepSeek 账户,获取 API 密钥,并安装langchain-deepseek 集成包。
凭证
前往 DeepSeek’s API Key page 注册 DeepSeek 并生成 API 密钥。 完成后设置DEEPSEEK_API_KEY 环境变量:
安装
LangChain 的 DeepSeek 集成位于langchain-deepseek 包中:
实例化
现在我们可以实例化模型对象并生成聊天补全:调用
API 参考
有关所有ChatDeepSeek 功能和配置的详细文档,请前往 API Reference.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

