branch: externals/llm commit c8b14b4d9c87b2b3ac5004017825941f4bfe3461 Author: Andrew Hyatt <ahy...@gmail.com> Commit: Andrew Hyatt <ahy...@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