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

@@ -101,7 +101,9 @@ public sealed class ChatCompletionToolCallAccumulator(Func<ServerSentEvent, ILis
/// </returns>
/// <remarks>
/// The end of the stream is the end of the message. There is nothing else to wait for: a
/// "[DONE]" is not sent by every gateway, and a finish reason not by every one either.
/// "[DONE]" is not sent by every gateway, and a finish reason not by every one either. That
/// holds for a stream which the provider closed only. A stream which was cut off never gets
/// here: its adapter ends the round before, cf. <see cref="ServerSentEventStreamEnd"/>.
/// </remarks>
public ChatCompletionResponseMessage? Build()
{