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

Simple shortcut to interrupt long response #521

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

artsparkAI
Copy link
Contributor

@artsparkAI artsparkAI commented Mar 23, 2024

All it does is capture Ctrl-C to interrupt the text stream. To exit the program while a stream is running you hit Ctrl-C twice. (View this PR with whitespace changes off to see what's actually changed.)

Fixes #319

I implemented this for my own needs, it hasn't undergone any testing or consideration of edge cases.

@TheR1D TheR1D merged commit bb63eba into TheR1D:main Mar 24, 2024
3 checks passed
@TheR1D
Copy link
Owner

TheR1D commented Mar 24, 2024

Thanks @artsparkAI, merged.

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

Successfully merging this pull request may close these issues.

Provide a shortcut to stop generating text early in repl
2 participants