microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.57k stars 2.43k forks source link

The local setup port is 8000, but start.cmd automatically opens port 50505 #649

Open wyl765 opened 6 months ago

wyl765 commented 6 months ago

Describe the bug There are two issues

  1. the start.cmd opens http://127.0.0.1:50505 but the terminal say it is running at http://127.0.0.1:8000, I can open 8000 but cannot open 50505
  2. I disabled the auth using AUTH_ENABLED=False, the site can open, but the completion failed with 401. the error is image

Screenshots image

Configuration: Please provide the following

sarah-widder commented 6 months ago

Hi @wyl765 since #643 the start.cmd has been fixed with the right port. For the 401 error - have you specified the AZURE_OPENAI_KEY in your .env file?

wyl765 commented 6 months ago

@sarah-widder , yes, I specified the AZURE_OPENAI_KEY in .env file. Also seems the error message is complaining about AAD token, I disabled the auth by setting AUTH_ENABLED=False.