Skip to content

.Net Bug: IChatCompletionService produces StreamingChatMessageContent without role assignment #6952

@crickman

Description

@crickman

Describe the bug
AuthorRole is not assigned to each and every StreamingChatMessageContent produced

To Reproduce
Steps to reproduce the behavior:

  1. Open concepts sample OpenAI_ChatCompletionStreaming.StreamTextContentAsync
  2. Set breakpoint on Console.Write(chatUpdate.Content);
  3. Run sample
  4. Examine: chatUpdate.Role

Expected behavior
Message has Role property assigned to each StreamingChatMessageContent instance (similiar to ModelId and other properties)

Platform

  • Language: C#
  • Source: Main

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET codebugSomething isn't workingkernelIssues or pull requests impacting the core kernelsk team issueA tag to denote issues that where created by the Semantic Kernel team (i.e., not the community)triage

Type

No type

Projects

Status

Sprint: Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions