semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

.Net: Bug: AssistantChatMessage has no Participant Property

Open method-marco opened this issue 2 years ago • 4 comments

Describe the bug Kernel.InvokePromptStreamingAsync throws System.MissingMethodException --> 'Method not found: 'Void OpenAI.Chat.AssistantChatMessage.set_ParticipantName(System.String)'.'

Platform

  • OS: Windows
  • IDE: Visual Studio
  • Language: C#
  • Source: NuGet Package Microsoft.SemanticKernel 1.18.0-rc

Additional context Checking the Source Code on Branch dotnet-1.18.0 reveals the following code: [new AssistantChatMessage(message.Content) { ParticipantName = message.AuthorName }];

method-marco avatar Aug 22 '24 13:08 method-marco

switching form .net 6 to .net 8 resolves the issue

method-marco avatar Aug 22 '24 13:08 method-marco

@RogerBarreto, could you validate that there's nothing lurking here that we should be concerned about?

madsbolaris avatar Aug 22 '24 15:08 madsbolaris

@matthewbolanos @method-marco Please confirm which version of OpenAI package are you using in the solution?

As far as I understand we support only OpenAI-beta.5 any attempt on using a different OpenAI package version may cause conflicts.

This might be related with their recent changes from init to set in this property.

Please provide more context on the versions used and code for reproduction.

RogerBarret0 avatar Aug 22 '24 18:08 RogerBarret0

@method-marco Small correction from my part the error is expected when you run the .Net 6

We do not support .net 6 for Semantic Kernel since our 1.0 release.

rogerbarreto avatar Aug 23 '24 10:08 rogerbarreto