Skip to content

Introduce streamMode for useChat / useCompletion.#1350

Merged
lgrammel merged 7 commits intomainfrom
lg/raw-text-stream
Apr 16, 2024
Merged

Introduce streamMode for useChat / useCompletion.#1350
lgrammel merged 7 commits intomainfrom
lg/raw-text-stream

Conversation

@lgrammel
Copy link
Copy Markdown
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
@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.

2 participants