TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
8.84k stars 696 forks source link

Simple shortcut to interrupt long response #521

Closed artsparkAI closed 3 months ago

artsparkAI commented 3 months ago

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 commented 3 months ago

Thanks @artsparkAI, merged.