Variable: gptel-max-tokens
gptel-max-tokens is a customizable variable defined in
gptel-request.el.
Value
nil
Documentation
Max tokens per response.
This is roughly the number of words in the response. 100-300 is a reasonable range for short answers, 400 or more for longer responses.
To set the target token count for a chat session interactively
call gptel-send with a prefix argument.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
(defcustom gptel-max-tokens nil
"Max tokens per response.
This is roughly the number of words in the response. 100-300 is a
reasonable range for short answers, 400 or more for longer
responses.
To set the target token count for a chat session interactively
call `gptel-send' with a prefix argument."
:safe #'always
:type '(choice (natnum :tag "Specify Token count")
(const :tag "Default" nil)))