microsoft / semantic-kernel

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

Bug(may be): about running Sample of dotNET notebooks by using Azure OpenAI #1499

Closed AwesomeYuer closed 1 year ago

AwesomeYuer commented 1 year ago

Describe the bug when I running the cell of step 4 Load and Run a Skill in 00-getting-started.ipynb , got the error as below: Error: Invalid request: The request is not valid, HTTP status: 400 the version of Microsoft.SemanticKernel nuget package is: 0.15.230531.5-preview

at the runtime I try to use fiddler to capture the traffic, but capture nothing.

To Reproduce Steps to reproduce the behavior:

  1. config settings.json for use azure when run all the cells in 0-AI-settings.ipynb
  2. run the cells in 00-getting-started.ipynb one by one
  3. after run the cell of step 4 Load and Run a Skill , see error: Error: Invalid request: The request is not valid, HTTP status: 400

Expected behavior running succeed I remember that an old version of semantic-kernel can running succeed, such as Microsoft.SemanticKernel, 0.12.207.1-preview

Screenshots

image

image

image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

lemillermicrosoft commented 1 year ago

It looks like you are using an embeddings model but the samples are written to use a text completion model. Can you re-open if changing that to a text completion model still doesn't work?

AwesomeYuer commented 1 year ago

@lemillermicrosoft Thanks for your feedback.

I changed to use text completion , it works properly!

Would you help to answer another question for me as below:

https://github.com/microsoft/semantic-kernel/discussions/1513