branch: externals/llm
commit f409841da39b10f840d15c342d8360d04baa1123
Author: Andrew Hyatt <ahy...@gmail.com>
Commit: Andrew Hyatt <ahy...@gmail.com>

    Add ability to cancel processes, which is what plz returns
---
 llm.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/llm.el b/llm.el
index 2cfbb91aab..380b3d6b69 100644
--- a/llm.el
+++ b/llm.el
@@ -487,6 +487,9 @@ methods."
             (kill-buffer-query-functions nil))
     (kill-buffer buf)))
 
+(cl-defmethod llm-cancel-request ((proc process))
+  (delete-process proc))
+
 (cl-defgeneric llm-name (_)
   "Return the name of the model in PROVIDER.
 This is expected to be suitable for short labels. For example, if

Reply via email to