Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] macos,dmg客户端更新为2.15.6,azure接口无法使用 #5755

Open
kehuantiantang opened this issue Nov 1, 2024 · 8 comments
Open
Labels
bug Something isn't working

Comments

@kehuantiantang
Copy link

📦 部署方式

官方安装包

📌 软件版本

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"
}

image

我测试了非常多的方法,依旧无法顺利进行chat,请问应该如何设置?
是否有debug模式,可以看到发送的url地址,谢谢。

🚦 期望结果

📝 补充信息

@kehuantiantang kehuantiantang added the bug Something isn't working label Nov 1, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] macos, dmg client updated to 2.15.6, azure interface cannot be used

@Dogtiti
Copy link
Member

Dogtiti commented Nov 1, 2024

#5001

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


#5001

@eugene2candy
Copy link

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Change the interface to https://kehua-m2ymeoeu-eastus2.openai.azure.com/openai

@kehuantiantang
Copy link
Author

把接口改成 https://kehua-m2ymeoeu-eastus2.openai.azure.com/openai

Hello, thank you for your suggestion.
I change the interface as your said, but it report another error.
The configuration of NextChat:

  1. Interface: https://kehua-m2ymeoeu-eastus2.openai.azure.com/openai
  2. key: from azure
  3. azure api version: 2024-08-01-preview
  4. custom model: gpt4o
    image

The error report:

{
  "error": true,
  "message": "empty response from server"
}

@eugene2candy
Copy link

eugene2candy commented Nov 4, 2024

Your configuration is false by current code logic.
Please follow my steps below:
0. keep your endpoint as ending with "/openai"

  1. make sure your deployment name as gpt-4o
    image
  2. from the setting, leave the custom models as blank, setup model as gpt-4o(azure), summary model as gpt-4o(azure)
    image

@kehuantiantang
Copy link
Author

Your configuration is false by current code logic. Please follow my steps below: 0. keep your endpoint as ending with "/openai"

  1. make sure your deployment name as gpt-4o
    image
  2. from the setting, leave the custom models as blank, setup model as gpt-4o(azure), summary model as gpt-4o(azure)
    image

Thank you so much for your advice, the interface finally work.
I wonder to known that it is possible use different interface at some time.
For example, I configure gpt4-o--> 2024-08-01-preview and gpt-35-turbo --> 0301.
How can i modify the configuration(azure api version,custom model) for different model ?
Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants