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

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

[elpa] externals/llm dd20d6353c 21/34: Fix bug on llm-fake's error respo


From: Andrew Hyatt
Subject: [elpa] externals/llm dd20d6353c 21/34: Fix bug on llm-fake's error response to chat-response
Date: Sat, 16 Sep 2023 01:32:49 -0400 (EDT)

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

    Fix bug on llm-fake's error response to chat-response
---
 llm-fake.el | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/llm-fake.el b/llm-fake.el
index 172f7866d2..93b0b210d0 100644
--- a/llm-fake.el
+++ b/llm-fake.el
@@ -46,11 +46,6 @@ 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)
 
-(defun llm-fake--chat-response (provider prompt)
-  "Produce a fake chat response.
-PROVIDER, PROMPT are as in `llm-chat-response.'"
-  )
-
 (cl-defmethod llm-chat-response-async ((provider llm-fake) prompt 
response-callback error-callback)
   (condition-case err
       (funcall response-callback (llm-chat-response provider prompt))
@@ -68,7 +63,7 @@ PROVIDER, PROMPT are as in `llm-chat-response.'"
         (pcase (type-of result)
                 ('string result)
                 ('cons (signal (car result) (cdr result)))
-                (_ (error "Incorrect type found in `chat-action-func': %s" 
(type-of-result)))))
+                (_ (error "Incorrect type found in `chat-action-func': %s" 
(type-of result)))))
     "Sample response from `llm-chat-response-async'"))
 
 (cl-defmethod llm-embedding ((provider llm-fake) string)



reply via email to

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