Function: gptel-use-header-line

gptel-use-header-line is a natively compiled function defined in gptel.el.

Signature

(gptel-use-header-line)

Documentation

Set up the header-line for a gptel buffer.

It is composed of three segments: the backend name, the status (Ready/Waiting etc) and the info segment, showing the current context, tools, system prompt, model and more.

Source Code

;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel.el
(defun gptel-use-header-line ()
  "Set up the header-line for a gptel buffer.

It is composed of three segments: the backend name, the
status (Ready/Waiting etc) and the info segment, showing the current
context, tools, system prompt, model and more."
  (setq
   header-line-format
   (list '(:eval (concat (propertize " " 'display '(space :align-to 0))
                         (format "%s" (gptel-backend-name gptel-backend))))
         (propertize " Ready" 'face 'success)
         gptel--header-line-info)))