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

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

[elpa] externals/llm c8b14b4d9c 19/34: Fix fake provider embedding func


From: Andrew Hyatt
Subject: [elpa] externals/llm c8b14b4d9c 19/34: Fix fake provider embedding func and remove async unit tests
Date: Sat, 16 Sep 2023 01:32:48 -0400 (EDT)

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

    Fix fake provider embedding func and remove async unit tests
---
 llm-fake.el | 2 +-
 llm-test.el | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/llm-fake.el b/llm-fake.el
index f6142c0dec..172f7866d2 100644
--- a/llm-fake.el
+++ b/llm-fake.el
@@ -80,7 +80,7 @@ PROVIDER, PROMPT are as in `llm-chat-response.'"
       (let* ((f (llm-fake-embedding-action-func provider))
              (result (funcall f)))
         (pcase (type-of result)
-                ('vector (funcall vector-callback result))
+                ('vector result)
                 ('cons (signal (car result) (cdr result)))
                 (_ (error "Incorrect type found in `chat-embedding-func': %s" 
(type-of-result)))))
     [0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9]))
diff --git a/llm-test.el b/llm-test.el
index 5470db0c8a..e7a87676ad 100644
--- a/llm-test.el
+++ b/llm-test.el
@@ -31,7 +31,6 @@
 
 (ert-deftest llm-test-embedding ()
   (should-error (llm-embedding nil "Test"))
-  (should-error (llm-embedding-async nil "Test"))
   ;; TODO: Test signals that are not errors, which ert doesn't seem to catch.
   (should-error (llm-embedding (make-llm-fake
                                 :embedding-action-func



reply via email to

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