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] 从 v2.15.3 开始 Azure 模型无法生成标题 #5575

Closed
jia-niang opened this issue Sep 30, 2024 · 14 comments
Closed

[Bug] 从 v2.15.3 开始 Azure 模型无法生成标题 #5575

jia-niang opened this issue Sep 30, 2024 · 14 comments
Labels
bug Something isn't working

Comments

@jia-niang
Copy link

📦 部署方式

Docker

📌 软件版本

v2.15.3

💻 系统环境

Ubuntu

📌 系统版本

22.04.4 LTS

🌐 浏览器

Chrome

📌 浏览器版本

129.0.6668.71 (ARM)

🐛 问题描述

v2.15.3 版本开始,如果不用 OpenAI 的模型,那么无法正确生成对话的标题,前一个版本是正常的。

给出我的 Docker 配置:

旧版本(v2.15.2):

  gpt:
    image: yidadaa/chatgpt-next-web:v2.15.2
    environment:
      - AZURE_URL=
      - AZURE_API_KEY=
      - AZURE_API_VERSION=2024-02-01
      - CUSTOM_MODELS=-all,+gpt-4o@Azure,+gpt-4o-mini@Azure

此时可以自动调用 gpt-4o-mini 模型来生成标题,结果如下图:
image


新版本,把版本号改成 v2.15.3 重新启动 Docker,此时就无法正确为问答生成标题了。
如下图:
image

查看后台日志输出,会发现生成标题又使用了 OpenAI 默认的模型。

📷 复现步骤

No response

🚦 期望结果

No response

📝 补充信息

No response

@jia-niang jia-niang added the bug Something isn't working label Sep 30, 2024
@Issues-translate-bot
Copy link

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


Title: [Bug] Azure model fails to generate headers starting from v2.15.3

@lloydzhou
Copy link
Member

可以在这里配置一下,默认不是Azure的模型,默认是OpenAI的模型
image
也可以在全局的Settings里面配置一下,新开启的会话应该会继承这个全局的配置

@itcodes
Copy link

itcodes commented Oct 8, 2024

可以在这里配置一下,默认不是Azure的模型,默认是OpenAI的模型 image 也可以在全局的Settings里面配置一下,新开启的会话应该会继承这个全局的配置

好像不行。。。

@Issues-translate-bot
Copy link

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


You can configure it here. The default is not the Azure model, but the OpenAI model! [image](https://private-user-images.githubusercontent.com/1826685/372116015-76394882-2f92-48ef-b948-538c73855869 .png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..J7RZkK8TzgKO295nPGKtpM21S0EYlVOpeRCYW_OQYoA) You can also configure it in the global Settings. Newly opened sessions should inherit this global configuration.

It doesn't seem to work. . .

@jia-niang
Copy link
Author

可以在这里配置一下,默认不是Azure的模型,默认是OpenAI的模型 image 也可以在全局的Settings里面配置一下,新开启的会话应该会继承这个全局的配置

好像不行。。。

不行的,我用浏览器开无痕模式测试过了。
目前只能先用 2.15.2 版本,2.15.3 我提了 3 个 Issue 了,应该是 Azure 的用户比较少

@Issues-translate-bot
Copy link

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


You can configure it here. The default is not the Azure model, but the OpenAI model! [image](https://private-user-images.githubusercontent.com/1826685/372116015-76394882-2f92-48ef-b948- 538c73855869.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..J7RZkK8TzgKO295nPGKtpM21S0EYlVOpeRCYW_OQYoA) You can also configure it in the global Settings. Newly opened sessions should inherit this global configuration.

It seems not possible. . .

No, I tested it using the browser in incognito mode.
Currently, we can only use version 2.15.2 first. I have raised 3 issues for 2.15.3. It should be because there are relatively few Azure users.

@Yuml
Copy link

Yuml commented Oct 9, 2024

我也碰到相同的问题。

问题描述:
标题生成异常,显示为一段错误消息JSON,提示缺少OpenAI的api key。我在模型选项设置中只保留了一个Azure的模型。也没有找到标题总结相关的模型设置。

部署方式:vercel
模型:Azure
软件版本:v2.15.3
环境变量:

  • CUSTOM_MODELS=-all,+gpt-4-0613@azure=g4
  • CODE=XXXXXXX
  • AZURE_API_VERSION=2024-02-15-preview
  • AZURE_API_KEY=
  • AZURE_URL=
    浏览器:Edge(Windows)、Safari(iOS)

标题显示的报错内容:
{ "error": { "message": "Incorrect API key provided: nk-XXXXXXX. You can find your API key at https://platform.openai.com/account/api-keys.", "type": "invalid_request_error", "param": null, "code": "invalid_api_key" }}

@Issues-translate-bot
Copy link

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


I also encountered the same problem, version v2.15.3, I hope there is a solution

@lloydzhou
Copy link
Member

谁帮忙在这个临时的测试地址测一下,看看是否修复了?
https://5607-vercelpreviewdeployment.pr.nextchat.dev/

@Issues-translate-bot
Copy link

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


Can anyone help me test it at this temporary test address to see if it's fixed?
https://5607-vercelpreviewdeployment.pr.nextchat.dev/

lloydzhou added a commit that referenced this issue Oct 9, 2024
@jia-niang
Copy link
Author

谁帮忙在这个临时的测试地址测一下,看看是否修复了? https://5607-vercelpreviewdeployment.pr.nextchat.dev/

经测试问题基本解决。

(我的模型设置是 -all,+gpt-4o@Azure,+gpt-4o-mini@Azure,+gpt-4@Azure,+gpt-35-turbo@Azure,+gpt-35-turbo-16k@Azure,+dall-e-3@Azure

设置模型后,此时设置页面的 “压缩模型” 自动选中第一项 “gpt-4o(Azure)”,此时还是有问题的:
image
在设置界面重新选择一次 “压缩模型” 之后,再开始新对话,标题就一切正常了。

@Issues-translate-bot
Copy link

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


Can anyone help me test it at this temporary test address to see if it has been fixed? https://5607-vercelpreviewdeployment.pr.nextchat.dev/

After testing, the problem is basically solved.

(My model settings are -all,+gpt-4o@Azure,+gpt-4o-mini@Azure,+gpt-4@Azure,+gpt-35-turbo@Azure,+gpt-35-turbo-16k @Azure,+dall-e-3@Azure)

After setting up the model, the first item "gpt-4o (Azure)" is automatically selected in "Compressed Model" on the settings page. There is still a problem at this time:
image
After re-selecting "Compressed Model" in the settings interface and starting a new conversation, the title will be normal.

@itcodes
Copy link

itcodes commented Oct 9, 2024

谁帮忙在这个临时的测试地址测一下,看看是否修复了? https://5607-vercelpreviewdeployment.pr.nextchat.dev/

现在如果不配置DEFAULT_MODEL,必须要手动选一下了。。不然会报错。我记得之前不用配置默认模型啊

Microsoft Edge 2024-10-09 19 33 40

@Issues-translate-bot
Copy link

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


Can anyone help me test it at this temporary test address to see if it has been fixed? https://5607-vercelpreviewdeployment.pr.nextchat.dev/

Now if you do not configure DEFAULT_MODEL, you must select it manually. . Otherwise, an error will be reported. I remember that I didn’t need to configure the default model before.

Microsoft Edge 2024-10-09 19 33 40

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

5 participants