s-kostyaev / ellama

Ellama is a tool for interacting with large language models from Emacs.
GNU General Public License v3.0
584 stars 38 forks source link

Feature: Add possibility to cancel current request #164

Open markokocic opened 1 month ago

markokocic commented 1 month ago

Sometimes one can see that request is not giving the needed or correct response, but still has to wait until it finishes responding to be able to ask a new or reformulate the question.

It would be useful to have an option to cancel a response without having to wait for it to finish.

s-kostyaev commented 1 month ago

C-g or keyboard-quit should cancel current request.

markokocic commented 1 month ago

For me, C-g kills the whole session and the answer buffer. I was thinking about cancelling just current request, and keeping the session open.

s-kostyaev commented 1 month ago

Looks like a bug.

s-kostyaev commented 1 month ago

I can't reproduce this issue exactly. Sometimes I need to press C-g multiple times, but it doesn't kill my session and session buffer. Can you share your ellama configuration (with hided keys if needed)?