microsoft / semantic-kernel

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

"InvalidRequest: The request is not valid, HTTP status: 400" When running Jupiter notebooks #649

Closed mkulisic closed 1 year ago

mkulisic commented 1 year ago

Describe the bug I am trying to get started using sematic kernel but I keep running into the same exception "InvalidRequest: The request is not valid, HTTP status: 400" when running the "00-getting-started.ipynb" notebook for dotnet.

To Reproduce Steps to reproduce the behavior:

  1. Created a azure openai instance and deployed a model called gpt-4
  2. Installed .Net 7 and polyglot as stated by the notebook 00-getting-started.ipynb
  3. Edited the config/settings.json file to contain my endpoint, model name and key: image
  4. Changed step 2 to use AzureOpenAi image
  5. Changed the service id in step 3 (unclear if this matters) image
  6. Ran the code

Expected behavior I would expect this to return an answer using the "Joke" skill the notebook uses, but instead I get an exception.

Screenshots image

Desktop (please complete the following information):

Additional context I got the same error when I attempted to configure the visual studio code extension as stated in the documentation.

ankiga-MSFT commented 1 year ago

I am facing similar issue. The error that I got -

The chatCompletion operation does not work with the specified model, text-davinci-003. Please choose different model and try again. You can learn more about which models can be used with each operation here: https://go.microsoft.com/fwlink/?linkid=2197993. Status: 400 (Bad Request) ErrorCode: OperationNotSupported

mkulisic commented 1 year ago

@ankiga-MSFT You may be running into a different problem than me. I just tested with "text-davinci-003" and with this model I can actually get this to work. Most likely the schema has changed for gpt4 and that is why I couldn't get it to work before. I'll be closing this issue.

anandaganesh84 commented 1 year ago

I am getting the same issue with gpt-35-turbo