Variable: gptel-markdown-validate-link
gptel-markdown-validate-link is a customizable variable defined in
gptel-request.el.
Value
always
Documentation
Validate links to be sent as context with gptel queries.
When gptel-track-media is enabled, this option determines if a
supported link will be followed and its source included with gptel
queries from Markdown buffers. Currently only links to files are
supported (along with web URLs if the model supports them).
It should be a function that accepts a Markdown link and return non-nil
if the link should be followed. See markdown-link-at-pos for the
structure of a Markdown link object.
By default, all links are considered valid.
Set this to gptel--link-standalone-p to only follow links placed on a
line by themselves, separated from surrounding text.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
(defcustom gptel-markdown-validate-link #'always
"Validate links to be sent as context with gptel queries.
When `gptel-track-media' is enabled, this option determines if a
supported link will be followed and its source included with gptel
queries from Markdown buffers. Currently only links to files are
supported (along with web URLs if the model supports them).
It should be a function that accepts a Markdown link and return non-nil
if the link should be followed. See `markdown-link-at-pos' for the
structure of a Markdown link object.
By default, all links are considered valid.
Set this to `gptel--link-standalone-p' to only follow links placed on a
line by themselves, separated from surrounding text."
:type '(choice
(const :tag "All links" always)
(const :tag "Standalone links" gptel--link-standalone-p)
(function :tag "Function"))
:group 'gptel)