[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
- [elpa] branch externals/llm created (now 39ae6fc794), Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 3b761aca25 02/34: Add README.org, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm ad76cff80b 01/34: Initial checkin of the llm package for emacs., Andrew Hyatt, 2023/09/16
- [elpa] externals/llm cff5db8ad5 16/34: Add unit tests and fix all brokenness detected by them, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 131a7ee5d3 12/34: Solve flaky errors when using sync llm commands, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 48ae59d149 14/34: Fix llm-chat-prompt-to-text, which was unusable, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 636014bf64 08/34: Make all remaining code async-friendly, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 9e3040bad2 20/34: Add warnings requested by GNU about nonfree software, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm c8b14b4d9c 19/34: Fix fake provider embedding func and remove async unit tests,
Andrew Hyatt <=
- [elpa] externals/llm 9057a50df4 11/34: Fix indenting in llm--run-async-as-sync, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm c322577b9b 13/34: Test both sync and async commands, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm cff9ab8f3c 22/34: Centralize nonfree llm warnings, and warn with a targeted type, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm ad230d9d6b 10/34: Add methods for nil provider, to throw more meaningful errors, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 650bba65d5 25/34: Improve the docstring for llm--warn-on-nonfree, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm b2f1605514 33/34: Delete some trailing whitespace, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 39ae6fc794 34/34: Assign copyright to FSF, in preparation of inclusion to GNU ELPA, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 9a3fc01cac 17/34: Switch from generic to per-provider sync solution, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm eba797b295 04/34: Implement error handling for gcloud auth issues, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 16ee85fd11 05/34: Add async options, and made the sync options just use those and wait, Andrew Hyatt, 2023/09/16