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

    Enhance chat functionality in transient
    
    Updated the `ellama-transient-chat` function to prompt the user for input 
before
    initiating a chat with Ellama. This allows users to specify their query 
directly
    from the transient interface, improving usability and interactivity.
---
 ellama-transient.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ellama-transient.el b/ellama-transient.el
index 7d7a437e44..ec02af40c1 100644
--- a/ellama-transient.el
+++ b/ellama-transient.el
@@ -345,7 +345,9 @@ Otherwise, prompt the user to enter a system message."
 (transient-define-suffix ellama-transient-chat (&optional args)
   "Chat with Ellama.  ARGS used for transient arguments."
   (interactive (list (transient-args transient-current-command)))
-  (ellama-chat (transient-arg-value "--new-session" args)))
+  (ellama-chat
+   (read-string "Ask Ellama: ")
+   (transient-arg-value "--new-session" args)))
 
 ;;;###autoload (autoload 'ellama-transient-main-menu "ellama-transient" nil t)
 (transient-define-prefix ellama-transient-main-menu ()

Reply via email to