From 552939b2f65b6b80185e4ee3fbf213078e7a8ace Mon Sep 17 00:00:00 2001 From: Karthik Chikmagalur Date: Fri, 24 Mar 2023 17:35:45 -0700 Subject: [PATCH] gptel: Fix free-variable error * gptel.el (gptel--url-parse-response): Fix free-variable error. --- gptel.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gptel.el b/gptel.el index 0e58997..e9bb04f 100644 --- a/gptel.el +++ b/gptel.el @@ -375,7 +375,7 @@ INFO is a plist with the following keys: (list :content nil :status (concat status ": " error-type)))) ((eq response 'json-read-error) (message "ChatGPT error: Malformed JSON in response.") - (list :content nil :status (concat http-msg ": Malformed JSON in response."))) + (list :content nil :status (concat status ": Malformed JSON in response."))) (t (message "ChatGPT error: Could not parse HTTP response.") (list :content nil :status (concat status ": Could not parse HTTP response.")))) (message "ChatGPT error: Could not parse HTTP response.")