[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)
- [elpa] externals/llm e94bc937c7 27/34: Fix issue with llm-chat before method having too many arguments, (continued)
- [elpa] externals/llm e94bc937c7 27/34: Fix issue with llm-chat before method having too many arguments, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 7edd36b2dc 28/34: Fix obsolete or incorrect function calls in llm-fake, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm d4bbe9d84c 29/34: Fix incorrect requires in openai and vertex implementations, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 723c0b3786 31/34: Minor README whitespace and formatting fixes, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 8f30feb5c1 32/34: README improvements, including noting the nonfree llm warning, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 444850a981 24/34: Fix missing word in non-free warning message, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 0ed280c208 15/34: Add llm-fake, useful for developer testing using the llm methods, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm c55ccf157a 03/34: Clean up package specifications in elisp files, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 414d25a625 09/34: Removed various unused things, and format fixes, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm 4e9be8183d 07/34: Merge branch 'async', Andrew Hyatt, 2023/09/16
- [elpa] externals/llm dd20d6353c 21/34: Fix bug on llm-fake's error response to chat-response,
Andrew Hyatt <=
- [elpa] externals/llm 40151757de 26/34: Switch to a method of nonfree warnings easier for provider modules, Andrew Hyatt, 2023/09/16
- [elpa] externals/llm ba65755326 30/34: Improve the README with information on providers for end-users, Andrew Hyatt, 2023/09/16