Use gptel-with-toolset instead of manual let-binding

This commit is contained in:
Jeremy Dormitzer 2025-02-15 05:47:40 -05:00
parent e87ff94486
commit cbce0a3ef0

View File

@ -606,7 +606,7 @@ PROMPT is an optional custom confirmation message."
:commands gptel-quick :commands gptel-quick
:config :config
(defun gptel-quick-around-advice (orig-fun &rest args) (defun gptel-quick-around-advice (orig-fun &rest args)
(let ((gptel-tools)) (gptel-with-toolset :empty
(apply orig-fun args))) (apply orig-fun args)))
(advice-add 'gptel-quick :around #'gptel-quick-around-advice) (advice-add 'gptel-quick :around #'gptel-quick-around-advice)
:general :general