Closed
Description
I read through the docs, especially the https://sdk.vercel.ai/docs/concepts/backpressure-and-cancellation part, and I think it would be useful to add a functionality that makes it optional to continue streaming instead of cancelling the stream if the user exits page or refreshes.
Example use case:
Let's say I am streaming the data, and want to put the response in my database when it's done. If the user exits the page, I can still consume the stream on the server, and still put it in my database when it's done. However, with the current version, the stream would cancel and there is no way to continue consuming the stream on server/api.