Replies: 4 comments 4 replies
-
|
Same here Maybe storing each completed step into db and if user breaks off you send abort signal and you resume from last saved step |
Beta Was this translation helpful? Give feedback.
-
|
Support is now available here https://ai-sdk.dev/docs/ai-sdk-ui/chatbot-message-persistence#resuming-ongoing-streams |
Beta Was this translation helpful? Give feedback.
-
|
If you need to resume streams you can use something like : https://www.durablr.run/docs - check resumable |
Beta Was this translation helpful? Give feedback.
-
|
This discussion was automatically locked because it has not been updated in over 30 days. If you still have questions about this topic, please ask us at community.vercel.com/ai-sdk |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using useChat which works well for streaming responses, but I'd like some way to resume the stream if the user reloads the page (or at the very least if the component unmounts). Is there any recommended way to do this? I was looking into potentially creating a service worker to receive the stream data, but it doesn't seem like the best approach as I'd have to reimplement a bunch of stuff already built into useChat.
Beta Was this translation helpful? Give feedback.
All reactions