Skip to content

Commit

Permalink
gptel-transient: enable additional directive by default
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
karthink committed Mar 17, 2024
1 parent b31c9be commit 94b13e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gptel-transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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))
Expand Down

0 comments on commit 94b13e7

Please sign in to comment.