[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ellama 2d982274cb 05/11: Pass complete response to on-d
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ellama 2d982274cb 05/11: Pass complete response to on-done function |
Date: |
Fri, 22 Dec 2023 15:57:50 -0500 (EST) |
branch: externals/ellama
commit 2d982274cb6834b61700d488a899889cd4567391
Author: Steven Allen <steven@stebalien.com>
Commit: Steven Allen <steven@stebalien.com>
Pass complete response to on-done function
---
ellama.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ellama.el b/ellama.el
index 6c01a31f6d..fb962ec5a8 100644
--- a/ellama.el
+++ b/ellama.el
@@ -190,8 +190,8 @@ current (buffer-local) conversation.
:on-error ON-ERROR -- ON-ERROR a function that's called with an error message
on
failure (with BUFFER current).
-:on-done ON-DONE -- ON-DONE a function that's called when the request completes
-\(with BUFFER current)."
+:on-done ON-DONE -- ON-DONE a function that's called with the full response
text
+when the request completes (with BUFFER current)."
(let* ((buffer (or (plist-get args :buffer) (current-buffer)))
(point (or (plist-get args :point)
(with-current-buffer buffer (point))))
@@ -245,7 +245,7 @@ failure (with BUFFER current).
(undo-amalgamate-change-group
ellama--change-group)
(accept-change-group ellama--change-group)
(spinner-stop)
- (funcall donecb)))
+ (funcall donecb text)))
(lambda (_ msg)
(with-current-buffer buffer
(cancel-change-group ellama--change-group)
@@ -267,7 +267,7 @@ failure (with BUFFER current).
"## " ellama-assistant-nick ":\n")
(ellama-stream prompt
:session t
- :on-done (lambda () (save-excursion
+ :on-done (lambda (_) (save-excursion
(goto-char (point-max))
(insert "\n\n")))))))
- [elpa] externals/ellama updated (a0aba01fa1 -> cb0fbac035), ELPA Syncer, 2023/12/22
- [elpa] externals/ellama 0463fd4d99 02/11: Document new ellama-stream parameters, ELPA Syncer, 2023/12/22
- [elpa] externals/ellama b1ede862bb 03/11: Fix documentation text width, ELPA Syncer, 2023/12/22
- [elpa] externals/ellama 01bcadadf9 04/11: Fix additional lint errors, ELPA Syncer, 2023/12/22
- [elpa] externals/ellama 2d982274cb 05/11: Pass complete response to on-done function,
ELPA Syncer <=
- [elpa] externals/ellama c8bf280bc9 06/11: Improve ellama-stream doc string a bit, ELPA Syncer, 2023/12/22
- [elpa] externals/ellama c97c4a8096 01/11: Merge duplicate code, ELPA Syncer, 2023/12/22
- [elpa] externals/ellama 510cc0a2ce 07/11: Merge pull request #29 from Stebalien/steb/dry, ELPA Syncer, 2023/12/22
- [elpa] externals/ellama b2082aca99 08/11: Eliminate duplicated code, ELPA Syncer, 2023/12/22
- [elpa] externals/ellama acb2a351dd 09/11: Fix code trimming, ELPA Syncer, 2023/12/22
- [elpa] externals/ellama 37696f7029 10/11: Merge pull request #34 from Stebalien/steb/fix-trim, ELPA Syncer, 2023/12/22
- [elpa] externals/ellama cb0fbac035 11/11: Update version, ELPA Syncer, 2023/12/22