ChatGPTNextWeb / ChatGPTNextWeb/NextChat
[FAQ] 如何使用自定义模型(CUSTOM_MODELS)配置使用Azure资源
- Dominant language
- TypeScript
- Stars
- 88.8k
- Forks
- 59.1k
- PR merge metrics
- No merged PRs in 30d
Description
### 📦 部署方式
官方安装包
### 📌 软件版本
2.15.6
### 💻 系统环境
macOS
### 📌 系统版本
12.6.3
### 🌐 浏览器
Other
### 📌 浏览器版本
0
### 🐛 问题描述
您好,非常谢谢您的工作。
我更换api接口的时候,出现了`"message": "empty response from server"`的问题。
### 📷 复现步骤
修改前可用的api接口设置为:
1. 服务商:azure
2. 接口: https://xxx.openai.azure.com/openai/deployments/gpt4o
3. 接口版本: 2023-03-15-preview
4. 自定义模型:gpt4o
5. 选择模型:gpt4o。
使用curl测试成功api接口:
```
curl https://kehua-m2ymeoeu-eastus2.openai.azure.com/openai/deployments/gpt4o/chat/completions?api-version=2024-08-01-preview \
-H "Content-Type: application/json" \
-H "api-key: xxxxx" \
-d '{"messages":[{"role": "system", "content": "你是谁?"}]}'
```
根据接口,按照上面方法在2.15.6版本进行设置,依次为
1. 服务商: azure
2. 接口:https://kehua-m2ymeoeu-eastus2.openai.azure.com/openai/deployments/gpt4o
3. 接口版本:2024-08-01-preview
4. 自定义模型:gpt4o
5. 选择模型:gpt4o
运行结果为:
```
{
"error": true,
"message": "empty response from server"
}
```

我测试了非常多的方法,依旧无法顺利进行chat,请问应该如何设置?
是否有debug模式,可以看到发送的url地址,谢谢。
### 🚦 期望结果
无
### 📝 补充信息
无
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.