gptel: Fix parsing error in url-retrieve buffer
* gptel.el (gptel--url-parse-response): Fix parsing error.
This commit is contained in:
parent
23caab41cf
commit
2b2dbe2664
1 changed files with 2 additions and 2 deletions
4
gptel.el
4
gptel.el
|
@ -348,8 +348,8 @@ INFO is a plist with the following keys:
|
|||
((string-match-p "200 OK" status)
|
||||
(list :content (string-trim
|
||||
(decode-coding-string
|
||||
(content (map-nested-elt
|
||||
response '(:choices 0 :message :content)))
|
||||
(map-nested-elt
|
||||
response '(:choices 0 :message :content))
|
||||
'utf-8))
|
||||
:status status))
|
||||
((plist-get response :error)
|
||||
|
|
Loading…
Add table
Reference in a new issue