File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,9 @@ Optional RAW disables text properties and transformation."
280280 (set-marker-insertion-type tracking-marker t )
281281 (plist-put info :tracking-marker tracking-marker))
282282 (goto-char tracking-marker)
283+ (when (plist-get info :last-was-tool-result )
284+ (insert gptel-response-separator)
285+ (plist-put info :last-was-tool-result nil ))
283286 (unless raw
284287 (when transformer
285288 (setq response (funcall transformer response)))
@@ -294,7 +297,8 @@ Optional RAW disables text properties and transformation."
294297 (`(tool-call . , tool-calls )
295298 (gptel--display-tool-calls tool-calls info))
296299 (`(tool-result . , tool-results )
297- (gptel--display-tool-results tool-results info))))
300+ (gptel--display-tool-results tool-results info)
301+ (plist-put info :last-was-tool-result t ))))
298302
299303(defun gptel-curl--stream-filter (process output )
300304 (let* ((fsm (car (alist-get process gptel--request-alist)))
You can’t perform that action at this time.
0 commit comments