Fixed a misleading tool calling error after a stopped or interrupted answer (#1202)

Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
j-erlerandThorsten Sommer authored and GitHub committed 2026-11-20 14:46:27 +01:00
1 parent fb8f51dec4
commit ca7413d84c
18 files changed
+272 -76

No files matched your search

@@ -106,8 +106,10 @@ public sealed class ResponsesStreamAccumulator
return null;
//
// No closing event came, so the round is put back together from the items which did.
// Reasoning items are among them, which is what the next request needs to continue.
// No closing event came, although the provider closed the stream: some gateways never send
// it. So the round is put back together from the items which did come. Reasoning items are
// among them, which is what the next request needs to continue. A stream which was cut off
// never gets here: its adapter ends the round before, cf. ServerSentEventStreamEnd.
//
return new ResponsesResponse
{