Open nor0x opened 2 weeks ago
@nor0x Thanks for reporting this issue.
I tried to run your code and I wasn't able to reproduce this error using gpt-4
model, I got new Guid
in console. Could you please specify which AI model and version of Semantic Kernel you are using? Thanks!
thanks for your reply. I'm also using gpt-4 and I have updated the Nugets in my repro project which are the following:
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.6" PrivateAssets="all" />
<PackageReference Include="Microsoft.KernelMemory.AI.OpenAI" Version="0.64.240619.1" />
<PackageReference Include="Microsoft.KernelMemory.Core" Version="0.64.240619.1" />
<PackageReference Include="Microsoft.KernelMemory.SemanticKernelPlugin" Version="0.64.240619.1" />
<PackageReference Include="Microsoft.SemanticKernel.Plugins.Memory" Version="1.13.0-alpha" />
<PackageReference Include="Microsoft.SemanticKernel" Version="1.15.0" />
I still get the error mentioned above. Here is a screenshot:
you cannot reproduce it with the repro project @dmytrostruk ?
I can recreate the issue and it doesn't seem to be Semantic Kernel's code, but Azure.AI.OpenAIClient 1.0.0-beta.17.
The problem may be due to it running in web assembly.
It is failing in Semantic Kernel Connectors.OpenAI.ClientCore.cs line 403 where it looks like it is supposed to serialize the function.
However the request going to OpenAI is missing the function's metadata due to some failure that must be handled and not bubble out:
Repro is here: BlazorApp1.zip
Describe the bug I'm using Semantic Kernel with some KernelFunctions in a Blazor WebAssembly app. The kernel is built the following way with a registration of the Plugin:
The Plugin in the repro is very basic and just logs stuff to the console
And this code is used to send the prompt to the LLM:
The call to
GetChatMessageContentAsync
produces the following error message:Additional context please note that a
new HttpClient
is used because the app is running on Blazor WebAssembly and there is this bug here https://github.com/microsoft/semantic-kernel/issues/1792I was not able to find a workaround yet, so this is currently a blocker for us