-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add stop helper to useAssistant #1503
Comments
The AI SDK UI functions ( useChat, useCompletion ) return a |
@lgrammel But this doesn't exist in |
PR: #1524 Unfortunately it seems that OpenAI does not correctly abort the assistant from running when an abort signal is sent, and prevents further chat responses until it has finished completely. |
@lgrammel Thanks! |
Feature Description
Could we add support for canceling a call that is in progress in the AI SDK UI? I know this feature is available in the AI SDK Core and AI SDK RSC, but can we incorporate it into the AI SDK UI as well?
Use Case
Many users see no value in waiting for the full response from the server if they notice that the response does not align with their desires or if they realize the response is incorrect. It would be beneficial to have the ability to cancel a call that is in progress while using the AI SDK UI.
Additional context
No response
The text was updated successfully, but these errors were encountered: