branch: externals/llm commit 7edd36b2dc1e8986adc191b0a30b31afc9dfa6bb Author: Andrew Hyatt <ahy...@gmail.com> Commit: Andrew Hyatt <ahy...@gmail.com>
Fix obsolete or incorrect function calls in llm-fake --- llm-fake.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llm-fake.el b/llm-fake.el index 95aea76400..76ac01d6bd 100644 --- a/llm-fake.el +++ b/llm-fake.el @@ -46,9 +46,9 @@ either a vector response for the chat, or a signal symbol and message cons. If nil, the response will be a simple vector." output-to-buffer chat-action-func embedding-action-func) -(cl-defmethod llm-chat-response-async ((provider llm-fake) prompt response-callback error-callback) +(cl-defmethod llm-chat-async ((provider llm-fake) prompt response-callback error-callback) (condition-case err - (funcall response-callback (llm-chat-response provider prompt)) + (funcall response-callback (llm-chat provider prompt)) (t (funcall error-callback (car err) (cdr err)))) nil) @@ -77,7 +77,7 @@ message cons. If nil, the response will be a simple vector." (pcase (type-of result) ('vector result) ('cons (signal (car result) (cdr result))) - (_ (error "Incorrect type found in `chat-embedding-func': %s" (type-of-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])) (cl-defmethod llm-embedding-async ((provider llm-fake) string vector-callback error-callback)