Skip to content

.Net [BugFix] GenerateMessageStreamAsync Last Message Null #2917

Merged
rogerbarreto merged 3 commits intomicrosoft:mainfrom
rogerbarreto:issues/2900-last-null-stream-message
Sep 21, 2023
Merged

.Net [BugFix] GenerateMessageStreamAsync Last Message Null #2917
rogerbarreto merged 3 commits intomicrosoft:mainfrom
rogerbarreto:issues/2900-last-null-stream-message

Conversation

@rogerbarreto
Copy link
Member

Motivation and Context

The extension method ChatCompletionExtensions.GenerateMessageStreamAsync() returns an unexpected null as last message.

Description

Fixes the bug/unintended last null message.
Resolves #2900

Contribution Checklist

@rogerbarreto rogerbarreto added bug Something isn't working .NET Issue or Pull requests regarding .NET code PR: ready to merge PR has been approved by all reviewers, and is ready to merge. extensibility labels Sep 21, 2023
@rogerbarreto rogerbarreto requested a review from a team as a code owner September 21, 2023 11:42
@rogerbarreto rogerbarreto self-assigned this Sep 21, 2023
Copy link
Member

@markwallace-microsoft markwallace-microsoft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shawncal shawncal added kernel Issues or pull requests impacting the core kernel and removed kernel.core labels Sep 21, 2023
@rogerbarreto rogerbarreto added this pull request to the merge queue Sep 21, 2023
Merged via the queue into microsoft:main with commit e6d0263 Sep 21, 2023
@rogerbarreto rogerbarreto deleted the issues/2900-last-null-stream-message branch September 21, 2023 12:17
SOE-YoungS pushed a commit to SOE-YoungS/semantic-kernel that referenced this pull request Nov 1, 2023
…#2917)

### Motivation and Context

The extension method
ChatCompletionExtensions.GenerateMessageStreamAsync() returns an
unexpected null as last message.

### Description

Fixes the bug/unintended last null message.
Resolves microsoft#2900 

### Contribution Checklist

- [x] The code builds clean without any errors or warnings
- [x] The PR follows the [SK Contribution
Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md)
and the [pre-submission formatting
script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts)
raises no violations
- [x] All unit tests pass, and I have added new tests where possible
- [X] I didn't break anyone 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code PR: ready to merge PR has been approved by all reviewers, and is ready to merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.Net: GenerateMessageStreamAsync returns a null as last element

4 participants