Variable: gptel-include-reasoning
gptel-include-reasoning is a customizable variable defined in
gptel-request.el.
Value
ignore
Documentation
How to handle LLM reasoning or "thinking" text blocks.
Some LLMs include in their response a "thinking" section. This text improves the quality of the LLM's final output, but may not be interesting to you by itself.
Supported options are the symbols
ignore - Include in the response but ignore on subsequent
conversation turns (default)
t - Include in the response
nil - Do not include
It can also be a string naming a buffer, in which case the reasoning text will be inserted at the end of that buffer.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
(defcustom gptel-include-reasoning 'ignore
"How to handle LLM reasoning or \"thinking\" text blocks.
Some LLMs include in their response a \"thinking\" section. This
text improves the quality of the LLM's final output, but may not
be interesting to you by itself.
Supported options are the symbols
ignore - Include in the response but ignore on subsequent
conversation turns (default)
t - Include in the response
nil - Do not include
It can also be a string naming a buffer, in which case the
reasoning text will be inserted at the end of that buffer."
:group 'gptel
:type '(choice
(const :tag "Include with response" t)
(const :tag "Don't include" nil)
(const :tag "Include but ignore" ignore)
(string :tag "Include in buffer")))