branch: elpa/aidermacs
commit 9ce579a061ad51d9d59bde5c4a2cda9b34bba038
Author: Mingde (Matthew) Zeng <[email protected]>
Commit: Mingde (Matthew) Zeng <[email protected]>
aidermacs--get-available-models should use new
aidermacs--send-command-redirect
---
aidermacs-models.el | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/aidermacs-models.el b/aidermacs-models.el
index 2879a4dc45..a011952aad 100644
--- a/aidermacs-models.el
+++ b/aidermacs-models.el
@@ -92,8 +92,8 @@ Returns a list of model names with appropriate prefixes based
on the API provide
(defun aidermacs--get-available-models ()
"Get list of models supported by aider using the /models command."
- (aidermacs--send-command
- "/models /" t
+ (aidermacs--send-command-redirect
+ "/models /"
(lambda (output)
(let* ((supported-models
(seq-filter
@@ -115,8 +115,6 @@ Returns a list of model names with appropriate prefixes
based on the API provide
(filtered-models (seq-filter (lambda (model)
(member model
supported-models))
fetched-models)))
- ;; (message "Fetched models from %s: %S" url fetched-models)
- ;; (message "Filtered models from %s: %S" url filtered-models)
(setq models (append models filtered-models)))
(error (message "Failed to fetch models from %s: %s" url err))))
(setq aidermacs--cached-models models)