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] AZURE_API_KEY wasn't handled correctly #5317

Open
crh19970307 opened this issue Aug 26, 2024 · 4 comments
Open

[Bug] AZURE_API_KEY wasn't handled correctly #5317

crh19970307 opened this issue Aug 26, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@crh19970307
Copy link

📦 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 crh19970307 added the bug Something isn't working label Aug 26, 2024
@nextchat-manager
Copy link

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

@Issues-translate-bot
Copy link

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


Title: [Bug]

@crh19970307 crh19970307 changed the title [Bug] [Bug] AZURE_API_KEY wasn't handled correctly Aug 27, 2024
@github-staff github-staff deleted a comment from QAbot-zh Aug 27, 2024
@lovitus
Copy link

lovitus commented Sep 14, 2024

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

@Andy-qinyuhai
Copy link

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

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

6 participants
@lovitus @crh19970307 @Andy-qinyuhai @Issues-translate-bot and others