Variable: gptel-track-response
gptel-track-response is a customizable variable defined in
gptel-request.el.
Value
t
Documentation
Distinguish between user messages and LLM responses.
When creating a prompt to send to the LLM, gptel distinguishes between text entered by the user and past LLM responses. This distinction is necessary for back-and-forth conversation with an LLM.
In regular Emacs buffers you can turn this behavior off by
setting gptel-track-response to nil. All text, including
past LLM responses, is then treated as user input when sending
queries.
This variable has no effect in dedicated chat buffers (buffers
with gptel-mode(var)/gptel-mode(fun) enabled), where user prompts and responses are
always handled separately.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
(defcustom gptel-track-response t
"Distinguish between user messages and LLM responses.
When creating a prompt to send to the LLM, gptel distinguishes
between text entered by the user and past LLM responses. This
distinction is necessary for back-and-forth conversation with an
LLM.
In regular Emacs buffers you can turn this behavior off by
setting `gptel-track-response' to nil. All text, including
past LLM responses, is then treated as user input when sending
queries.
This variable has no effect in dedicated chat buffers (buffers
with `gptel-mode' enabled), where user prompts and responses are
always handled separately."
:type 'boolean)