Add shell command directive to gptel configuration
This change introduces a new directive for generating shell commands to the gptel configuration. The directive specifies that the response should be plain text with no additional description or formatting.
This commit is contained in:
parent
0adc712d2f
commit
8d7dec78f5
@ -29,6 +29,7 @@
|
|||||||
models-alist)))))
|
models-alist)))))
|
||||||
(setq gptel-backend (car backend)
|
(setq gptel-backend (car backend)
|
||||||
gptel-model (cadr backend))))
|
gptel-model (cadr backend))))
|
||||||
|
(add-to-list 'gptel-directives '(shell-command . "You are a command line helper. Generate shell commands that do what is requested, without any additional description or explanation. Reply in plain text with no Markdown or other syntax. Reply with the command only."))
|
||||||
:general
|
:general
|
||||||
("C-c RET" #'gptel-send
|
("C-c RET" #'gptel-send
|
||||||
"C-c C-<return>" #'gptel-menu)
|
"C-c C-<return>" #'gptel-menu)
|
||||||
|
Loading…
Reference in New Issue
Block a user