Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and improve streaming chat messages #13

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

magols
Copy link
Contributor

@magols magols commented Jun 15, 2024

Motivation and Context
Inspired by and improving on #12 as a solution for #11

The chat message content is not returned to caller until entire stream has been read.

Description
Instead of using PostAsJsonAsync use a basic SendAsync specifying HttpCompletionOption.ResponseHeadersRead allowing the content to be read as soon as the HTTP response headers are received.

@BLaZeKiLL BLaZeKiLL merged commit aa77487 into BLaZeKiLL:main Jun 16, 2024
2 checks passed
@BLaZeKiLL
Copy link
Owner

Thanks for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants