Skip to main content
LibreChat is joining ClickHouse to power the open-source Agentic Data Stack 🎉 Learn more
LibreChat

Deepseek

在 LibreChat 中将 Deepseek 配置为自定义 endpoint。

Deepseek 通过 OpenAI 兼容的 API 提供其 chat、coder 和 reasoner 模型,您可以将其作为自定义 endpoint 添加到 LibreChat 中。

获取 API key

Deepseek platform 创建一个密钥。将其添加到你的 .env 文件中:

DEEPSEEK_API_KEY=your-api-key

配置

在你的 librechat.yaml 中,将 endpoint 添加到 endpoints.custom 下:

    - name: "Deepseek"
      apiKey: "${DEEPSEEK_API_KEY}"
      baseURL: "https://api.deepseek.com/v1"
      models:
        default: ["deepseek-chat", "deepseek-coder", "deepseek-reasoner"]
        fetch: false
      titleConvo: true
      titleModel: "deepseek-chat"
      modelDisplayLabel: "Deepseek"

注意事项

  • deepseek-chatdeepseek-coder 可与 Agents and tools 配合使用。
  • deepseek-reasoner(代号“R1”)已获得支持并可流式传输其思考过程,但某些 OpenAI API 参数可能无法与其兼容。当不使用工具时,R1 也可与 Agents 配合使用。
  • deepseek-chat 是用于生成标题的首选模型。
Deepseek 生成

这篇指南怎么样?