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

How to stop stream? #290

Open
benfiratkaya opened this issue Mar 26, 2024 · 2 comments
Open

How to stop stream? #290

benfiratkaya opened this issue Mar 26, 2024 · 2 comments

Comments

@benfiratkaya
Copy link

Hey,

I want to stop an ongoing stream by pressing the button. I also want to prevent new messages from being entered while the stream continues. In older versions, it was easy to do this because useChat() was used, but now I have no idea how to do it.

@athrael-soju
Copy link

You'd have to implement a stop button in the UI that stops the stream before it's done here

This solution, although not the most refactored is actually much better than useChat.

@benfiratkaya
Copy link
Author

You'd have to implement a stop button in the UI that stops the stream before it's done here

This solution, although not the most refactored is actually much better than useChat.

How can I use this on client side? Can you give an example?

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

No branches or pull requests

2 participants