Skip to content

Commit

Permalink
Fix Vertex response handling bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ahyatt committed May 15, 2024
1 parent 2c1e34a commit 25a4436
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.org
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* Version 0.14.2
- Fix mangled copyright line (needed to get ELPA version unstuck).
- Fix Vertex response handling bug.
* Version 0.14.1
- Fix various issues with the 0.14 release
* Version 0.14
Expand Down
3 changes: 2 additions & 1 deletion llm-vertex.el
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ KEY-GENTIME keeps track of when the key was generated, because the key must be r
(cl-defmethod llm-provider-chat-extract-result ((provider llm-google) response)
(pcase (type-of response)
('vector (when (> (length response) 0)
(let ((parts (mapcar #'llm-provider-chat-extract-result provider response)))
(let ((parts (mapcar (lambda (part) (llm-provider-chat-extract-result provider part))
response)))
(if (stringp (car parts))
(mapconcat #'identity parts "")
(car parts)))))
Expand Down

0 comments on commit 25a4436

Please sign in to comment.