[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gptel 24add64455 114/273: gptel: Adjust how gptel--system-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gptel 24add64455 114/273: gptel: Adjust how gptel--system-message is set |
Date: |
Wed, 1 May 2024 10:02:10 -0400 (EDT) |
branch: elpa/gptel
commit 24add6445548f8f3083d5aa855bffbf51ae0847e
Author: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmagalur@gmail.com>
gptel: Adjust how gptel--system-message is set
* gptel.el (gptel--system-message, gptel-directives): Try to make
gptel--system-message read from gptel-directives. This doesn't yet work how
we need it to -- changing gptel-directives does not update
gptel--system-message.
---
gptel.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/gptel.el b/gptel.el
index 0871826ddd..a9913ab5d1 100644
--- a/gptel.el
+++ b/gptel.el
@@ -211,12 +211,8 @@ When clicked, CALLBACK will be called."
(gptel--compat))
;; Model and interaction parameters
-(defvar-local gptel--system-message
- "You are a large language model living in Emacs and a helpful assistant.
Respond concisely.")
-(put 'gptel--system-message 'safe-local-variable #'gptel--always)
-
(defcustom gptel-directives
- `((default . ,gptel--system-message)
+ '((default . "You are a large language model living in Emacs and a helpful
assistant. Respond concisely.")
(programming . "You are a large language model and a careful programmer.
Provide code and only code as output without any additional text, prompt or
note.")
(writing . "You are a large language model and a writing assistant.
Respond concisely.")
(chat . "You are a large language model and a conversation partner.
Respond concisely."))
@@ -232,6 +228,9 @@ interactively call `gptel-send' with a prefix argument."
:safe #'gptel--always
:type '(alist :key-type symbol :value-type string))
+(defvar-local gptel--system-message (alist-get 'default gptel-directives))
+(put 'gptel--system-message 'safe-local-variable #'gptel--always)
+
(defcustom gptel-max-tokens nil
"Max tokens per response.
- [nongnu] elpa/gptel 37c381c2e5 092/273: README: Update with acknowledgments and more, (continued)
- [nongnu] elpa/gptel 37c381c2e5 092/273: README: Update with acknowledgments and more, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel d13b0c4ab7 088/273: gptel-transient: Fix gptel-system-prompt, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 6202474a6e 080/273: README: Update with changes to gptel-menu, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 075609544a 085/273: README: Update instructions for setting key (#46), ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel a7207a3835 097/273: README: Add TOC, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel f218388d4d 082/273: gptel-transient: Fix bug when sending in existing session, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 30700cc88a 096/273: README: Mention extensions, gptel-proxy, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 09729ee718 089/273: gptel: Create customization group, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel ac754ceb2a 086/273: gptel: Handle read-only gptel-buffers, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel cc6c5e7321 104/273: gptel: saving and restoring state, and limiting context, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 24add64455 114/273: gptel: Adjust how gptel--system-message is set,
ELPA Syncer <=
- [nongnu] elpa/gptel 17a58d38e7 135/273: gptel: Fix bug in url-retrieve setup, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 61c0df5e19 119/273: gptel, gptel-curl: Make the gptel text-property non-sticky, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 50a2498259 126/273: README: Tweak instructions for local LLMs, mention #120, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel ec0e461b35 128/273: gptel-curl: Increased curl timeout (#127), ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel d5949ef428 140/273: gptel-curl: handle large Curl payloads with a temp file (#137), ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 0ea3c7fb15 143/273: gptel-transient: Improve suffix message editor, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel ce75072f9d 152/273: gptel: Bump version, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 3af2650342 170/273: gptel-transient: save window state when ediff, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel e67ed41e31 173/273: README: Specify: no key needed for llama backend, ELPA Syncer, 2024/05/01
- [nongnu] elpa/gptel 1fcb4606a2 184/273: Fix compilation warning in gptel-openai.el, ELPA Syncer, 2024/05/01