emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/gptel 94b13e78ec 239/273: gptel-transient: enable addition


From: ELPA Syncer
Subject: [nongnu] elpa/gptel 94b13e78ec 239/273: gptel-transient: enable additional directive by default
Date: Wed, 1 May 2024 10:02:40 -0400 (EDT)

branch: elpa/gptel
commit 94b13e78ec89764704970e17acd6613fd4f05518
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>

    gptel-transient: enable additional directive by default
    
    * gptel-transient.el (gptel-menu, gptel--infix-add-directive,
    gptel--suffix-system-message):  Enable the additional directive
    option in `gptel-menu` by default, and change the wording of
    documentation strings for transient options.
---
 gptel-transient.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gptel-transient.el b/gptel-transient.el
index 3cf86417e3..c60df55bad 100644
--- a/gptel-transient.el
+++ b/gptel-transient.el
@@ -124,7 +124,7 @@ which see."
    [""
     "Instructions"
     ("s" "Set system message" gptel-system-prompt :transient t)
-    (gptel--infix-add-directive :if (lambda () gptel-expert-commands))]]
+    (gptel--infix-add-directive)]]
   [["Model Parameters"
     (gptel--infix-provider)
     (gptel--infix-max-tokens)
@@ -461,7 +461,7 @@ Also format its value in the Transient menu."
   "Additional directive intended for the next query only.
 
 This is useful to define a quick task on top of a more extensive
-or detailed system prompt (directive).
+or detailed system message.
 
 For example, with code/text selected:
 
@@ -719,7 +719,7 @@ This uses the prompts in the variable
 (transient-define-suffix gptel--suffix-system-message ()
   "Edit LLM directives."
   :transient 'transient--do-exit
-  :description "Set custom directives"
+  :description "Set or edit system message"
   :key "s"
   (interactive)
   (let ((orig-buf (current-buffer))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]