Function: gptel--model-mime-capable-p

gptel--model-mime-capable-p is a byte-compiled function defined in gptel-request.el.

Signature

(gptel--model-mime-capable-p MIME &optional MODEL)

Documentation

Return non nil if MODEL can understand MIME type.

Source Code

;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
;; TODO Handle model mime specifications like "image/*"
(defsubst gptel--model-mime-capable-p (mime &optional model)
  "Return non nil if MODEL can understand MIME type."
  (car-safe (member mime (gptel--model-mimes
                          (or model gptel-model)))))