Skip to content

Commit

Permalink
gptel: Remove references to gptel--debug (fix karthink#205)
Browse files Browse the repository at this point in the history
* gptel.el (gptel--url-parse-response): Remove reference to
`gptel--debug`.

* gptel-curl.el (gptel-curl--sentinel): Remove reference to
`gptel--debug`.
  • Loading branch information
karthink committed Feb 5, 2024
1 parent bf994c0 commit e2eccd8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions gptel-curl.el
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,6 @@ See `gptel-curl--get-response' for its contents.")
PROCESS and _STATUS are process parameters."
(let ((proc-buf (process-buffer process)))
(when gptel--debug
(with-current-buffer proc-buf
(clone-buffer "*gptel-error*" 'show)))
(when-let* (((eq (process-status process) 'exit))
(proc-info (alist-get process gptel-curl--process-alist))
(proc-callback (plist-get proc-info :callback)))
Expand Down
3 changes: 0 additions & 3 deletions gptel.el
Original file line number Diff line number Diff line change
Expand Up @@ -1134,9 +1134,6 @@ See `gptel-curl--get-response' for its contents.")
(defun gptel--url-parse-response (backend response-buffer)
"Parse response from BACKEND in RESPONSE-BUFFER."
(when (buffer-live-p response-buffer)
(when gptel--debug
(with-current-buffer response-buffer
(clone-buffer "*gptel-error*" 'show)))
(with-current-buffer response-buffer
(when gptel-log-level ;logging
(save-excursion
Expand Down

0 comments on commit e2eccd8

Please sign in to comment.