branch: elpa/gptel
commit dc417a5483b73096934afc442e2f1d4969559c9f
Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>

    gptel-transient: Hide the num-messages-to-send option
    
    * gptel-transient.el (gptel-menu): Hide the
    `gptel--num-messages-to-send' option in the transient menu as it
    appears to be a rarely used feature.  You can get it to show by
    setting `gptel-expert-commands' to `t`.
---
 gptel-transient.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gptel-transient.el b/gptel-transient.el
index bd7f230f17..c4344e8f2a 100644
--- a/gptel-transient.el
+++ b/gptel-transient.el
@@ -421,7 +421,8 @@ Also format its value in the Transient menu."
     (gptel--infix-provider)
     (gptel--infix-max-tokens)
     (gptel--infix-num-messages-to-send
-     :if (lambda () (or gptel-mode gptel-track-response)))
+     :if (lambda () (and gptel-expert-commands
+                    (or gptel-mode gptel-track-response))))
     (gptel--infix-temperature :if (lambda () gptel-expert-commands))
     (gptel--infix-use-context)
     (gptel--infix-track-response

Reply via email to