gptel: Fix bug in url-retrieve setup

* gptel.el (gptel--url-get-response): Record correctly the
gptel-backend at time of call to url-retrieve.
This commit is contained in:
Karthik Chikmagalur 2023-11-12 18:11:25 -08:00
parent 0109d0d1c0
commit 17a58d38e7

View file

@ -840,6 +840,7 @@ Call CALLBACK with the response and INFO afterwards. If omitted
the response is inserted into the current buffer after point."
(let* ((inhibit-message t)
(message-log-max nil)
(backend gptel-backend)
(url-request-method "POST")
(url-request-extra-headers
(append '(("Content-Type" . "application/json"))