Skip to content

Add support for datastream based chat#1096

Merged
lukasIO merged 29 commits intomainfrom
lukas/datastream-chat
Mar 27, 2025
Merged

Add support for datastream based chat#1096
lukasIO merged 29 commits intomainfrom
lukas/datastream-chat

Conversation

@lukasIO
Copy link
Copy Markdown
Contributor

@lukasIO lukasIO commented Feb 27, 2025

The changes are backwards compatible for legacy chat messages that were sent directly via publishData as JSON encoded strings.

main changes:

  • make useChat work with data streams (while making sure legacy format is still being sent and read)
  • add useTextStream hook with a caching layer similar to useChat (calling it from multiple places within the app just works)

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Feb 27, 2025

🦋 Changeset detected

Latest commit: 09f32a1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@livekit/components-core Patch
@livekit/components-react Minor
@livekit/components-styles Patch
@livekit/component-example-next Patch
@livekit/components-js-docs Patch
@livekit/component-docs-storybook Patch
@livekit/components-docs-gen Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 27, 2025

size-limit report 📦

Path Size
LiveKitRoom only 5.99 KB (0%)
LiveKitRoom with VideoConference 29.85 KB (0%)
All exports 37.02 KB (0%)

@lukasIO lukasIO requested review from bcherry and davidzhao February 27, 2025 15:06
@lukasIO lukasIO requested a review from davidliu March 26, 2025 13:52
@lukasIO lukasIO requested a review from bcherry March 26, 2025 16:05
@lukasIO lukasIO merged commit 673ee68 into main Mar 27, 2025
5 checks passed
@lukasIO lukasIO deleted the lukas/datastream-chat branch March 27, 2025 13:20
@github-actions github-actions bot mentioned this pull request Mar 27, 2025
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