branch: elpa/aidermacs
commit 4c514f65a5460425447287dadec56a11a5234fdf
Author: Adam Niederer <adam.niede...@gmail.com>
Commit: Matthew Zeng <matthew...@gmail.com>

    Do not require exact matches when selecting models
    
    There are circumstances, e.g. when using ollama, where aider will not give 
us
    a correct list of models, instead providing some defaults that nobody uses
    anymore (llama2 etc). Requiring an exact match in this case blocks users 
from
    selecting the model they wish to select.
    
    Ref:
    https://github.com/Aider-AI/aider/issues/3081
    https://github.com/Aider-AI/aider/pull/3944
---
 aidermacs-models.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/aidermacs-models.el b/aidermacs-models.el
index 8ee8ce6d0e..2449e1aff3 100644
--- a/aidermacs-models.el
+++ b/aidermacs-models.el
@@ -186,9 +186,9 @@ When SET-WEAK-MODEL is non-nil, only allow setting the weak 
model."
                 (completing-read
                  "Select model type: "
                  '("Main/Reasoning Model" "Editing Model")
-                 nil t))
+                 nil nil))
                (t "Main Model")))
-             (model (completing-read (format "Select %s: " model-type) 
aidermacs--cached-models nil t)))
+             (model (completing-read (format "Select %s: " model-type) 
aidermacs--cached-models nil nil)))
         (when model
           (cond
            (set-weak-model

Reply via email to