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

event callback for onCancel and behavior configuration #136

Open
TechyChan opened this issue Aug 23, 2024 · 1 comment
Open

event callback for onCancel and behavior configuration #136

TechyChan opened this issue Aug 23, 2024 · 1 comment

Comments

@TechyChan
Copy link

Right now, when the user presses cancel during agent streaming, the current streamed message and last user message is deleted. This behavior isn't ideal, as most LLM chat playgrounds will just simply cancel the current stream and leave everything in place, with the option to regenerate the response.

It would be great to configure or change this default cancellation behavior and also add an event callback when streaming is canceled.

@sagar1596
Copy link

Is there any update on this issue ?

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