From ccf97514f6eadf5ce26de0cd7a386988e99bb4d9 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Thu, 25 Jul 2024 00:27:56 -0400 Subject: [PATCH] Update gptel--system-message for automatic code evaluation Removed the need for confirmation before evaluating code in Org-Mode source blocks, allowing automatic execution. --- emacs/.emacs.d/config/init-ai.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs/.emacs.d/config/init-ai.el b/emacs/.emacs.d/config/init-ai.el index 5e6edfa..6da33ab 100644 --- a/emacs/.emacs.d/config/init-ai.el +++ b/emacs/.emacs.d/config/init-ai.el @@ -55,7 +55,7 @@ (let ((gptel-default-mode #'org-mode)) (gptel buffer nil initial interactivep)) (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 ("C-c RET" #'gptel-send "C-c C-" #'gptel-menu)