microsoft / semantic-kernel

Integrate cutting-edge LLM technology quickly and easily into your apps
https://aka.ms/semantic-kernel
MIT License
21.14k stars 3.1k forks source link

chat-summary-webapp-react cannot save the settings for Azure OpenAI #363

Closed yanxiaodi closed 1 year ago

yanxiaodi commented 1 year ago

Describe the bug I'm running the chat-summary-webapp-react demo app but cannot save the settings.

The first problem is that we need to rename .env.example as .env, which is not clear in the documents.

But still cannot save the settings.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'http://localhost:7071'
  2. Choose Azure OpenAI
  3. Type the key, deployment name, and endpoint
  4. Click on 'Save'
  5. See errors "ModelNotAvailable", "Unauthorized". Sometimes can list the deployed models but cannot save the settings, e.g. "Model xxx not available on xxx endpoint"

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

dluc commented 1 year ago

@craigomatic @hathind-ms

microsoftShannon commented 1 year ago

We're looking at this one now.

evchaki commented 1 year ago

@yanxiaodi - are you still having this issue? cc: @craigomatic

yanxiaodi commented 1 year ago

@evchaki I'll try it today and let you know. Thanks!

yanxiaodi commented 1 year ago

@evchaki it works now. I think it works only with text-davinci-003? I tried gpt-4 but got an error: image image

Is it expected? Thanks.

craigomatic commented 1 year ago

We just updated the samples to support chat completion models, ie: gpt35 turbo and gpt4 with PR #1279 so if you pull the latest code you should be able to get it to work with gpt4.

I will close this for now as it appears the original issue was resolved. Please reopen if needed!