[Bug] AZURE_API_KEY wasn't handled correctly
📦 Deployment Method
Docker
📌 Version
v2.14.2
💻 Operating System
Other
📌 System Version
x
🌐 Browser
Chrome
📌 Browser Version
x
🐛 Bug Description
After updating the yidadaa/chatgpt-next-web version to the latest, the deployed website unable to work. I use the same docker command as before. It seems that the AZURE_API_KEY wasn't handled correctly in the project. Could you help investigate? Thanks!
My command:
docker run -d -p 3000:3000 -e CODE=mycode -e AZURE_URL=https://xxxxx.openai.azure.com/openai/ -e AZURE_API_KEY=mykey -e AZURE_API_VERSION=2024-06-01 yidadaa/chatgpt-next-web
the error:
📷 Recurrence Steps
No response
🚦 Expected Behavior
No response
📝 Additional Information
No response
Please follow the issue template to update description of your issue.
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug]
same bug here , Azure(OpenAI)
{
"error": {
"message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": null
}
}
I encountered the same problem when I used Azure OpenAI's API