gptel-curl: Fix process sentinel
* gptel-curl.el (gptel-curl--sentinel): Use `process-status' instead of trying to match on the string passed to he process sentinel as the status.
This commit is contained in:
parent
051501c892
commit
87d9090b7a
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ PROCESS and STATUS are process parameters."
|
|||
(when gptel--debug
|
||||
(with-current-buffer proc-buf
|
||||
(clone-buffer "*gptel-error*" 'show)))
|
||||
(if-let* (((equal status "finished\n"))
|
||||
(if-let* (((eq (process-status process) 'exit))
|
||||
(proc-info (alist-get process gptel-curl--process-alist))
|
||||
(proc-token (plist-get proc-info :token))
|
||||
(response (gptel-curl--parse-response proc-buf proc-token)))
|
||||
|
|
Loading…
Add table
Reference in a new issue