2024-07-19 20:02:36 +08:00
|
|
|
## 如何使用国产大模型API接口
|
|
|
|
|
|
|
|
## ChatGPT兼容接口
|
|
|
|
|
|
|
|
### DeepSeek
|
|
|
|
|
|
|
|
**API接口地址** `https://api.deepseek.com`
|
|
|
|
|
|
|
|
### 阿里云百炼大模型
|
|
|
|
|
|
|
|
|
|
|
|
**API接口地址** `https://dashscope.aliyuncs.com/compatible-mode/v1`
|
2024-07-19 16:01:47 +08:00
|
|
|
|
2024-07-19 17:13:24 +08:00
|
|
|
### 字节跳动豆包大模型等
|
2024-07-19 16:01:47 +08:00
|
|
|
|
2024-07-19 20:02:36 +08:00
|
|
|
|
|
|
|
|
2024-07-19 16:13:26 +08:00
|
|
|
**API接口地址** `https://ark.cn-beijing.volces.com/api/v3`
|
|
|
|
|
|
|
|
**SECRET_KEY** 跟[官方文档](https://www.volcengine.com/docs/82379/1263279)获取
|
|
|
|
|
|
|
|
**model** 创建[推理接入点](https://console.volcengine.com/ark/region:ark+cn-beijing/endpoint?current=1&pageSize=10)后,填入**接入点**而非**模型**
|
|
|
|
|
|
|
|
![img](https://image.lunatranslator.xyz/zh/damoxing/doubao.png)
|
|
|
|
|
2024-07-19 20:02:36 +08:00
|
|
|
## 不兼容的专用接口
|
2024-07-19 17:13:24 +08:00
|
|
|
|
2024-07-19 20:02:36 +08:00
|
|
|
### 腾讯混元大模型
|
|
|
|
|
|
|
|
略
|
|
|
|
|
|
|
|
|
|
|
|
### 百度千帆大模型
|
|
|
|
|
2024-07-19 23:05:43 +08:00
|
|
|
!> 这个模型好像只支持中英翻译,不支持日文
|
2024-07-19 20:02:36 +08:00
|
|
|
|
|
|
|
**model** 应填写百度接口文档中的**请求地址**的尾部,例如:
|
2024-07-19 17:13:24 +08:00
|
|
|
|
2024-07-19 20:02:36 +08:00
|
|
|
![img](https://image.lunatranslator.xyz/zh/damoxing/qianfan1.png)
|
2024-07-19 17:13:24 +08:00
|
|
|
|
2024-07-19 20:02:36 +08:00
|
|
|
![img](https://image.lunatranslator.xyz/zh/damoxing/qianfan2.png)
|