branch: elpa/gptel
commit 9128ccde033df1662e8f412f1f2c830b07fc63c7
Author: Karthik Chikmagalur <[email protected]>
Commit: Karthik Chikmagalur <[email protected]>
gptel-request: Copy gptel-context to prompt buffer (#1091)
* gptel-request.el (gptel--with-buffer-copy-internal): Since
the buffer-local value of `gptel-context' is now respected, copy
it to the prompt construction buffer along with other gptel
options.
---
gptel-request.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gptel-request.el b/gptel-request.el
index 6590fea518c..5d99438c8ba 100644
--- a/gptel-request.el
+++ b/gptel-request.el
@@ -924,7 +924,7 @@ For BUF, START, END and BODY-THUNK see
`gptel--with-buffer-copy'."
(dolist (sym '( gptel-backend gptel--system-message gptel-model
gptel-mode gptel-track-response gptel-track-media
gptel-use-tools gptel-tools gptel-use-curl gptel--schema
- gptel-use-context gptel--num-messages-to-send
+ gptel-use-context gptel-context
gptel--num-messages-to-send
gptel-stream gptel-include-reasoning
gptel--request-params
gptel-temperature gptel-max-tokens gptel-cache))
(set (make-local-variable sym) (buffer-local-value sym buf)))