branch: elpa/gptel commit fd9200b55979c9b262b269a2e4b5eb62ffc4253c Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com> Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
gptel: Reset reasoning-block after tool call * gptel.el (gptel--handle-wait): Reset the :reasoning-block key, which is used to track the handling of reasoning content, before sending back the tool call results. This is so the reasoning content in the tool result analysis part of the response is correctly captured. --- gptel.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gptel.el b/gptel.el index 5e6c5106f3..6b81c31c4c 100644 --- a/gptel.el +++ b/gptel.el @@ -1998,7 +1998,8 @@ buffer." ;; a second network request: gptel tests for the presence of these flags to ;; handle state transitions. (NOTE: Don't add :token to this.) (let ((info (gptel-fsm-info fsm))) - (dolist (key '(:tool-success :tool-use :error :http-status :reasoning)) + (dolist (key '(:tool-success :tool-use :error + :http-status :reasoning :reasoning-block)) (when (plist-get info key) (plist-put info key nil)))) (funcall