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

Introduce streamMode for useChat / useCompletion. #1350

Merged
merged 7 commits into from
Apr 16, 2024
Merged

Conversation

lgrammel
Copy link
Collaborator

@lgrammel lgrammel commented Apr 15, 2024

Summary

Many uses cases involve sending a raw stream of text chunks to useChat and useCompletion (see #1347, #1316). This change adds an optional streamMode: "data-stream" | "text" (default: data-stream) parameter to useChat and useCompletion that can be used to switch to raw text stream processing. Supports React, Svelte, Vue, Solid.

@lgrammel lgrammel self-assigned this Apr 15, 2024
@lgrammel lgrammel merged commit 66b5892 into main Apr 16, 2024
6 checks passed
@lgrammel lgrammel deleted the lg/raw-text-stream branch April 16, 2024 14:19
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.

None yet

2 participants