Files
haiyushuke-website/content/models/deepseek.mdx
2026-06-16 14:34:09 +08:00

33 lines
846 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: DeepSeek 接入
sidebarTitle: DeepSeek
description: DeepSeek 系列模型接入说明
---
# DeepSeek 接入
DeepSeek 模型通过统一网关暴露,协议为 **OpenAI Chat Completions 兼容**。
## 示例
```bash
curl https://api.haiyushuke.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-chat",
"messages": [{"role": "user", "content": "用列表说明大模型网关的三项优势"}]
}'
```
## 模型选择建议
| 场景 | 建议 |
| --- | --- |
| 通用对话 / 代码 | `deepseek-chat` |
| 复杂推理(若已开通) | 控制台标注的 Reasoner 类模型 ID |
## 与 OpenAI SDK 共用配置
仅需修改 `model` 字段,无需更换 SDK`baseURL` 与 API Key 与 [OpenAI 接入](/docs/models/openai) 相同。