Stream the tool calling rounds of every Chat Completions provider

This commit is contained in:
Thorsten Sommer committed 2026-09-20 10:13:59 +02:00
1 parent 1be0a6bfc3
commit d4846d253f
10 files changed
+330 -62

No files matched your search

@@ -0,0 +1,9 @@
namespace AIStudio.Provider.OpenAI;
/// <summary>
/// One choice of a streamed Chat Completions answer, as the tool calling rounds read it.
/// </summary>
/// <param name="Index">The index of the choice; we only ever work with the first one.</param>
/// <param name="Delta">What this line adds to the choice.</param>
/// <param name="FinishReason">Why the model stopped, set on the last line of the choice.</param>
public sealed record ChatCompletionToolStreamChoice(int Index, ChatCompletionStreamDelta? Delta, string? FinishReason);