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

How to cancel chat when using base_coder.py's Code class? #2455

Open
lee88688 opened this issue Nov 25, 2024 · 0 comments
Open

How to cancel chat when using base_coder.py's Code class? #2455

lee88688 opened this issue Nov 25, 2024 · 0 comments

Comments

@lee88688
Copy link

Issue

when use run_stream and send_message to interact with Code class, it seems there is no other api to stop chat except use throw KeyboardInterrupt.

when I use chat = coder.send_message('xxx'); chat.throw(KeyboardInterrupt()); to throw exception, will the chat stop right now? or it is just stop iterator and keep the chat stream message background.

Version and model info

No response

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

1 participant