microsoft / semantic-kernel

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

.Net: Issue with the Plugin functionality in the HomeAutomation demo, using gpt-35-turbo (0301) #6542

Closed cyril-perrin closed 1 month ago

cyril-perrin commented 1 month ago

Hello,

I am currently analyzing the HomeAutomation demo, available in the Samples section of the dotnet repository.

I haven’t made any modifications to the original code. I have only updated the appsettings.json file with my deployment information: the deployment name (based on the gpt-35-turbo model version 0301), my endpoint, and my API key.

However, when I run the program and use the provided prompt ("what time is it?"), the copilot responds that it is just a virtual assistant and doesn't have access to my computer's time. This suggests that the system might not be recognizing the plugins or the kernel functions defined in the project.

image

Is this a known limitation of Semantic Kernel with the gpt-35-turbo model? I couldn't find any relevant information on this in the code or documentation.

It's important to note that when I use OpenAI with a gpt-4 model, everything works as expected—SK calls the plugin function and displays the correct time. Unfortunately, I no longer have access to this model and need to use Azure OpenAI with gpt-35-turbo.

Thank you in advance for your assistance!

dmytrostruk commented 1 month ago

based on the gpt-35-turbo model version 0301

It looks like this model doesn't support function calling, here is a list of supported models: https://platform.openai.com/docs/guides/function-calling/supported-models image

cyril-perrin commented 1 month ago

As far as I know there are 4 versions of gpt-35-turbo: 0301, 0613, 1106 and 0125. Your list explicitly mentions 3 of them, I wonder which version the "gpt-3.5-turbo" item corresponds to. But OK, 0301 not being explicitly mentioned, I'm going to assume it doesn't support function calling. Thank you for the quick reply.