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

Chat append incremental #1799

Merged
merged 9 commits into from
Dec 21, 2024
Merged

Chat append incremental #1799

merged 9 commits into from
Dec 21, 2024

Conversation

cpsievert
Copy link
Collaborator

Currently when streaming with the Shiny for Python ui.Chat() component, the entire accumulated content string gets sent on every chunk. This is because @transform_assistant_response allows you to transform the entire content string.

{shinychat} doesn't (at least not yet) support transformations in this same way, so it wants the ability to append each chunk. This PR adds that opt-in operation: "append" mode of updating the content string.

@cpsievert cpsievert requested a review from jcheng5 December 16, 2024 21:44
@jcheng5 jcheng5 merged commit ecc5c14 into main Dec 21, 2024
41 checks passed
@jcheng5 jcheng5 deleted the chat-append-incremental branch December 21, 2024 00:04
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