Variable: gptel-api-key
gptel-api-key is a customizable variable defined in gptel-request.el.
Value
gptel-api-key-from-auth-source
Documentation
An API key (string) for the default LLM backend.
OpenAI by default.
Can also be a function of no arguments that returns an API key (more secure) for the active backend.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
(defcustom gptel-api-key #'gptel-api-key-from-auth-source
"An API key (string) for the default LLM backend.
OpenAI by default.
Can also be a function of no arguments that returns an API
key (more secure) for the active backend."
:type '(choice
(string :tag "API key")
(function :tag "Function that returns the API key")))