33 lines
846 B
Plaintext
33 lines
846 B
Plaintext
---
|
||
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) 相同。
|