NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] AZURE_API_KEY wasn't handled correctly

Open crh19970307 opened this issue 1 year ago • 4 comments

📦 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:

image

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

crh19970307 avatar Aug 26 '24 06:08 crh19970307

Please follow the issue template to update description of your issue.

nextchat-manager[bot] avatar Aug 26 '24 06:08 nextchat-manager[bot]

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


Title: [Bug]

Issues-translate-bot avatar Aug 26 '24 06:08 Issues-translate-bot

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

lovitus avatar Sep 14 '24 06:09 lovitus

I encountered the same problem when I used Azure OpenAI's API

Andy-qinyuhai avatar Sep 19 '24 10:09 Andy-qinyuhai