Use gptel-with-toolset instead of manual let-binding
This commit is contained in:
parent
e87ff94486
commit
cbce0a3ef0
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user