Update gptel--system-message for automatic code evaluation
Removed the need for confirmation before evaluating code in Org-Mode source blocks, allowing automatic execution.
This commit is contained in:
parent
ed63a1ea0f
commit
ccf97514f6
@ -55,7 +55,7 @@
|
|||||||
(let ((gptel-default-mode #'org-mode))
|
(let ((gptel-default-mode #'org-mode))
|
||||||
(gptel buffer nil initial interactivep))
|
(gptel buffer nil initial interactivep))
|
||||||
(with-current-buffer buffer
|
(with-current-buffer buffer
|
||||||
(setq-local gptel--system-message "You are a large language model living in an Emacs Org-Mode buffer and a helpful assistant. You may evaluate code when necessary by outputting an Org-Mode source block. I will execute the source block and display the results in the buffer. Respond concisely.")))
|
(setq-local gptel--system-message "You are a large language model living in an Emacs Org-Mode buffer and a helpful assistant. You may evaluate code when necessary by outputting an Org-Mode source block. You don't need to ask for confirmation before evaluating code. I will execute the source block and display the results in the buffer. Respond concisely.")))
|
||||||
: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