vercel / ai

Build AI-powered applications with React, Svelte, Vue, and Solid
https://sdk.vercel.ai/docs
Other
9.18k stars 1.33k forks source link

no way to abort ai/rsc createStreamableValue / readStreamableValue from the client side #1795

Closed psai-terwin closed 1 week ago

psai-terwin commented 2 months ago

Feature Description

There should be a basic way to cancel a streaming request made with ai/rsc but the most basic feature of a stream seems non existent or undocumented

Use Case

The basic stop button on all streaming chat UI's like ChatGPT, Claude, etc

Additional context

No response

lgrammel commented 2 months ago

Related to #1122

MobileAppVault commented 1 month ago

@psai-terwin did you found any workaround to cancel actions?

lgrammel commented 1 week ago

Duplicate of #1122