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."
280
280
(set-marker-insertion-type tracking-marker t )
281
281
(plist-put info :tracking-marker tracking-marker))
282
282
(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 ))
283
286
(unless raw
284
287
(when transformer
285
288
(setq response (funcall transformer response)))
@@ -294,7 +297,8 @@ Optional RAW disables text properties and transformation."
294
297
(`(tool-call . , tool-calls )
295
298
(gptel--display-tool-calls tool-calls info))
296
299
(`(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 ))))
298
302
299
303
(defun gptel-curl--stream-filter (process output )
300
304
(let* ((fsm (car (alist-get process gptel--request-alist)))
You can’t perform that action at this time.
0 commit comments