karthink / gptel

A simple LLM client for Emacs
GNU General Public License v3.0
1.14k stars 119 forks source link

Aborting active query #50

Closed spenczar closed 1 year ago

spenczar commented 1 year ago

Sometimes GPT goes running off in the wrong direction. I'd like to be able to abort it to rephrase my prompt, without waiting for it to finish chugging out junk. I'm imagining a gpt-abort or gpt-cancel which cancels any queries in the current buffer, but I'm up for whatever.

karthink commented 1 year ago

Added gptel-abort in 219e163d. Only works when using curl (gptel-use-curl is non-nil, which is the default if Curl is detected in the path.)

Please test.