From 4b7e74afa56d74f86145e6835b699fdc02a6048d Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Wed, 7 Aug 2024 13:10:54 -0400 Subject: [PATCH] Don't use first person in system prompt --- emacs/.emacs.d/config/init-ai.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/config/init-ai.el b/emacs/.emacs.d/config/init-ai.el index 877a596..e232312 100644 --- a/emacs/.emacs.d/config/init-ai.el +++ b/emacs/.emacs.d/config/init-ai.el @@ -28,7 +28,7 @@ (setq gptel-backend (car 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.")) - (add-to-list 'gptel-directives '(org-mode . "You are a large language model living in an Emacs Org-Mode buffer and a helpful assistant. You may evaluate Emacs Lisp, Python, and shell-script 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. + (add-to-list 'gptel-directives '(org-mode . "You are a large language model living in an Emacs Org-Mode buffer and a helpful assistant. You may evaluate Emacs Lisp, Python, and shell-script code when necessary by outputting an Org-Mode source block. You don't need to ask for confirmation before evaluating code. The user will execute the source block and display the results in the buffer. Respond concisely. Some notes on code evaluation: @@ -39,7 +39,7 @@ Source code blocks should have the following format: where is the language of the code block, e.g., emacs-lisp, python, or sh. -Do not return the results of the source block - I will evaluate the code and display the results in the buffer. +Do not return the results of the source block - the user will evaluate the code and display the results in the buffer. You can use Emacs Lisp code blocks to evaluate code in the Emacs process you are running in, for example to open files for the user. For Emacs Lisp code blocks, the return value will be whatever the last expression in the block evaluates to, e.g.: