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

Cancel execution / stop streaming responses #46

Open
jtpio opened this issue Feb 17, 2025 · 0 comments
Open

Cancel execution / stop streaming responses #46

jtpio opened this issue Feb 17, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jtpio
Copy link
Member

jtpio commented Feb 17, 2025

Problem

Users may want to be able to stop the model from generating content, for example if the answer is not satisfying or this there was an error in the prompt.

Proposed Solution

Implement the approach mentioned in langchain docs to cancel execution: https://js.langchain.com/docs/how_to/cancel_execution/

Additional context

For the UI element, this would likely require jupyterlab/jupyter-chat#170, unless we can add that button here in an extension directly.

@jtpio jtpio added the enhancement New feature or request label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant