emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/llm 6ac6871f62 2/2: Add sleeps in llm-fake to simulate


From: ELPA Syncer
Subject: [elpa] externals/llm 6ac6871f62 2/2: Add sleeps in llm-fake to simulate streaming better
Date: Mon, 9 Oct 2023 00:58:25 -0400 (EDT)

branch: externals/llm
commit 6ac6871f625965f0fc630c62dc9936b24e95ffb7
Author: Andrew Hyatt <ahyatt@gmail.com>
Commit: Andrew Hyatt <ahyatt@gmail.com>

    Add sleeps in llm-fake to simulate streaming better
---
 llm-fake.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/llm-fake.el b/llm-fake.el
index 5b3901bd38..7ead4e01ed 100644
--- a/llm-fake.el
+++ b/llm-fake.el
@@ -82,7 +82,8 @@ message cons. If nil, the response will be a simple vector."
     (let ((accum ""))
       (mapc (lambda (word)
               (setq accum (concat accum word " "))
-              (funcall partial-callback accum))
+              (funcall partial-callback accum)
+              (sleep-for 0 100))
             (string-split text))
       (funcall response-callback text))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]