gptel: Fix parsing error in url-retrieve buffer

* gptel.el (gptel--url-parse-response): Fix parsing error.
This commit is contained in:
Karthik Chikmagalur 2023-03-23 14:34:26 -07:00
parent 23caab41cf
commit 2b2dbe2664

View file

@ -348,8 +348,8 @@ INFO is a plist with the following keys:
((string-match-p "200 OK" status) ((string-match-p "200 OK" status)
(list :content (string-trim (list :content (string-trim
(decode-coding-string (decode-coding-string
(content (map-nested-elt (map-nested-elt
response '(:choices 0 :message :content))) response '(:choices 0 :message :content))
'utf-8)) 'utf-8))
:status status)) :status status))
((plist-get response :error) ((plist-get response :error)