You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenAI Chat Service classes should support function calling and other API updates #1450
Our chat services objects should accommodate these updates.
### Tasks
- [ ] https://github.com/microsoft/semantic-kernel/issues/2315
- [ ] https://github.com/microsoft/semantic-kernel/issues/2932
- [ ] https://github.com/microsoft/semantic-kernel/issues/3017
- [ ] Explore kernel integration with function calling execution
- [ ] Add telemetry for function calling feature
Reacted by Alexander Minza
Reacted by Nurgo, xbotter, Jadyn, Josh Friedman, Juan Carlos Fontecha, Kevin Kinnett, Kevin Kinnett, suzuki.sh, Hoang Tran, Lukasz Chmielewski and 4 more
Reacted by xbotter, Victor Rad, Bruce, Jadyn, Richasy, Hoang Tran, Daniel DeFreez and Alexander Minza
The sk has a dependency with azure sdk, the current implementation rely on Azure SDK event for abstract chat concepts, for example on the Azure.AI.OpenAI.ChatRole class, are you thinking to wait for this Azure/azure-sdk-for-net#37013 ?
I think that should be better to have the model for chatting without dependencies with any other external library, so that different services provider (OpenAI, Azure Open AI or any other provider) can evolve at their own rythm.
Reacted by Hoang Tran, Joel Martinez and Alexander Minza
Using today's nightly build I was looking at the example Example59_OpenAIFunctionCalling.
Locally I tried to copy and run this to see how it worked, however the method "ImportPluginFunctionsAsync" doesn't appear to exist. There is a function "ImportAIPluginAsync" which seems similar, but if I try to use that then I see a compile error stating: "Reference to type 'ISKFunction' claims it is defined in 'Microsoft.SemanticKernel.Abstractions', but it could not be found"
bgbbmm This sample takes a dependency on the Microsoft.SemanticKernel.Functions.OpenAPI package since it imports the Klarna plugin to use in the example. In the latest package, ImportPluginFunctionsAsync replaces ImportAIPluginAsync, as the latter is being deprecated to align to our new naming scheme. It seems like you might not have the latest version of that package.
To fix this, you have a few options:
Get the latest nightly build of Microsoft.SemanticKernel.Functions.OpenAPI
Keep the version you have, and replace ImportPluginFunctionsAsync with ImportAIPluginAsync in the example code (the functionality is the same)
Remove the dependency on Microsoft.SemanticKernel.Functions.OpenAPI by commenting out the line that imports the Klarna plugin
bgbbmm This sample takes a dependency on the Microsoft.SemanticKernel.Functions.OpenAPI package since it imports the Klarna plugin to use in the example. In the latest package, ImportPluginFunctionsAsync replaces ImportAIPluginAsync, as the latter is being deprecated to align to our new naming scheme. It seems like you might not have the latest version of that package.
To fix this, you have a few options:
Get the latest nightly build of Microsoft.SemanticKernel.Functions.OpenAPI
Keep the version you have, and replace ImportPluginFunctionsAsync with ImportAIPluginAsync in the example code (the functionality is the same)
Remove the dependency on Microsoft.SemanticKernel.Functions.OpenAPI by commenting out the line that imports the Klarna plugin
Hope that helps.
Yes thank you, I did not realize there was a missing dependency. Thank you for the explanation and clarification on the updated naming conventions.
Activity
xbotter commentedon Jun 14, 2023
Function Calling seems to be able to serve as a new ActionPlanner, or it can also function as an extractor for Json data.
gmilano commentedon Jun 21, 2023
Do you have some plan on how to implement this ?
The sk has a dependency with azure sdk, the current implementation rely on Azure SDK event for abstract chat concepts, for example on the Azure.AI.OpenAI.ChatRole class, are you thinking to wait for this Azure/azure-sdk-for-net#37013 ?
I think that should be better to have the model for chatting without dependencies with any other external library, so that different services provider (OpenAI, Azure Open AI or any other provider) can evolve at their own rythm.
44 remaining items
bgbbmm commentedon Oct 4, 2023
Using today's nightly build I was looking at the example Example59_OpenAIFunctionCalling.
Locally I tried to copy and run this to see how it worked, however the method "ImportPluginFunctionsAsync" doesn't appear to exist. There is a function "ImportAIPluginAsync" which seems similar, but if I try to use that then I see a compile error stating: "Reference to type 'ISKFunction' claims it is defined in 'Microsoft.SemanticKernel.Abstractions', but it could not be found"
Anyone have thoughts on this?
gitri-ms commentedon Oct 4, 2023
bgbbmm This sample takes a dependency on the
Microsoft.SemanticKernel.Functions.OpenAPIpackage since it imports the Klarna plugin to use in the example. In the latest package,ImportPluginFunctionsAsyncreplacesImportAIPluginAsync, as the latter is being deprecated to align to our new naming scheme. It seems like you might not have the latest version of that package.To fix this, you have a few options:
Microsoft.SemanticKernel.Functions.OpenAPIImportPluginFunctionsAsyncwithImportAIPluginAsyncin the example code (the functionality is the same)Microsoft.SemanticKernel.Functions.OpenAPIby commenting out the line that imports the Klarna pluginHope that helps.
bgbbmm commentedon Oct 4, 2023
Yes thank you, I did not realize there was a missing dependency. Thank you for the explanation and clarification on the updated naming conventions.
Python: Implement Function calling for Chat (#2356)
Python: Implement Function calling for Chat (microsoft#2356)