-
Notifications
You must be signed in to change notification settings - Fork 59.3k
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] access code导致Azure模型不可用 #5560
Comments
Title: [Bug] access code causes Azure model to be unavailable |
This comment was marked as spam.
This comment was marked as spam.
|
|
I have the same issue |
找到原因了,自定义模型和预设模型是冲突的,如果之前填了Azure的api key,即使后面取消了勾选“自定义接口”,这个api key变量依然存在,app/client/api.ts这个文件里的getAuthHeader()方法并没有判断“自定义接口”是否勾选,导致请求头没有Authorization这个变量,最终导致了access code错误。 |
I found the reason. The custom model and the preset model conflict. If you filled in the Azure api key before, even if you uncheck "Custom Interface" later, the api key variable still exists, app/client/api.ts The getAuthHeader() method in this file does not determine whether "Custom Interface" is checked, resulting in the request header not having the Authorization variable, which ultimately leads to an access code error. |
📦 Deployment Method
Docker
📌 Version
2.5.13
💻 Operating System
Ubuntu
📌 System Version
20.2
🌐 Browser
Firefox
📌 Browser Version
130.0.1
🐛 Bug Description
启动docker时,如果指定了
-e CODE='xxx'
,Azure模型将不可用。复现步骤:
1.启动docker:
2.打开网页,提示输入access code
3.输入正确access code
4.OpenAI 模型服务可用,Azure模型不可用,提示access code错误。
5.启动docker时不设置CODE变量,Azure模型可正常生成内容。
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: