Variable: gptel-use-context
gptel-use-context is a customizable variable defined in
gptel-request.el.
Value
system
Documentation
Where in the request to inject gptel's additional context.
gptel always includes the active region or the buffer up to the
cursor in the request to the LLM. Additionally, you can add
other buffers or their regions to the context with
gptel-add-context, or from gptel's menu. This data will be
sent with every request.
This option controls whether and where this additional context is included in the request.
Currently supported options are:
nil - Do not use the context.
system - Include the context with the system message.
user - Include the context with the user prompt.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
(defcustom gptel-use-context 'system
"Where in the request to inject gptel's additional context.
gptel always includes the active region or the buffer up to the
cursor in the request to the LLM. Additionally, you can add
other buffers or their regions to the context with
`gptel-add-context', or from gptel's menu. This data will be
sent with every request.
This option controls whether and where this additional context is
included in the request.
Currently supported options are:
nil - Do not use the context.
system - Include the context with the system message.
user - Include the context with the user prompt."
:group 'gptel
:type '(choice
(const :tag "Don't include context" nil)
(const :tag "With system message" system)
(const :tag "With user prompt" user)))