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.
This commit is contained in:
parent
b31c9be5e0
commit
94b13e78ec
1 changed files with 3 additions and 3 deletions
|
@ -124,7 +124,7 @@ which see."
|
||||||
[""
|
[""
|
||||||
"Instructions"
|
"Instructions"
|
||||||
("s" "Set system message" gptel-system-prompt :transient t)
|
("s" "Set system message" gptel-system-prompt :transient t)
|
||||||
(gptel--infix-add-directive :if (lambda () gptel-expert-commands))]]
|
(gptel--infix-add-directive)]]
|
||||||
[["Model Parameters"
|
[["Model Parameters"
|
||||||
(gptel--infix-provider)
|
(gptel--infix-provider)
|
||||||
(gptel--infix-max-tokens)
|
(gptel--infix-max-tokens)
|
||||||
|
@ -461,7 +461,7 @@ Also format its value in the Transient menu."
|
||||||
"Additional directive intended for the next query only.
|
"Additional directive intended for the next query only.
|
||||||
|
|
||||||
This is useful to define a quick task on top of a more extensive
|
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:
|
For example, with code/text selected:
|
||||||
|
|
||||||
|
@ -719,7 +719,7 @@ This uses the prompts in the variable
|
||||||
(transient-define-suffix gptel--suffix-system-message ()
|
(transient-define-suffix gptel--suffix-system-message ()
|
||||||
"Edit LLM directives."
|
"Edit LLM directives."
|
||||||
:transient 'transient--do-exit
|
:transient 'transient--do-exit
|
||||||
:description "Set custom directives"
|
:description "Set or edit system message"
|
||||||
:key "s"
|
:key "s"
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((orig-buf (current-buffer))
|
(let ((orig-buf (current-buffer))
|
||||||
|
|
Loading…
Add table
Reference in a new issue