From 17a58d38e7299f254d02c29bbcc9211146394758 Mon Sep 17 00:00:00 2001 From: Karthik Chikmagalur Date: Sun, 12 Nov 2023 18:11:25 -0800 Subject: [PATCH] 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. --- gptel.el | 1 + 1 file changed, 1 insertion(+) diff --git a/gptel.el b/gptel.el index 6db4eb5..4b76c86 100644 --- a/gptel.el +++ b/gptel.el @@ -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"))