branch: externals/ellama
commit 66eba1f52aaee97afc5cbe88abd8627eefe9aa86
Author: Sergey Kostyaev <sskosty...@gmail.com>
Commit: Sergey Kostyaev <sskosty...@gmail.com>

    Add interactive setup for ellama transient menu
    
    Added `interactive` function to set up the transient menu and ensure the 
Ollama
    model name is filled if it's empty.
---
 ellama-transient.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ellama-transient.el b/ellama-transient.el
index 2862ba947a..4a39c9a120 100644
--- a/ellama-transient.el
+++ b/ellama-transient.el
@@ -443,7 +443,11 @@ ARGS used for transient arguments."
   [["Problem solving"
     ("R" "Solve reasoning problem" ellama-solve-reasoning-problem)
     ("D" "Solve domain specific problem" 
ellama-solve-domain-specific-problem)]]
-  [["Quit" ("q" "Quit" transient-quit-one)]])
+  [["Quit" ("q" "Quit" transient-quit-one)]]
+  (interactive)
+  (transient-setup 'ellama-transient-main-menu)
+  (when (string-empty-p ellama-transient-ollama-model-name)
+    (ellama-fill-transient-ollama-model ellama-provider)))
 
 ;;;###autoload (autoload 'ellama "ellama-transient" nil t)
 (defalias 'ellama 'ellama-transient-main-menu)

Reply via email to