namespace AIStudio.Provider.OpenAI; /// /// What a streamed chat completion should report beyond its content. /// /// /// An OpenAI-compatible provider says nothing about what a streamed request cost unless it is asked /// to. Without this block, the stream simply ends and the only token number anybody ever sees is /// the one AI Studio estimated for itself. /// /// Whether the stream should end with a line stating the token usage. public sealed record ChatCompletionStreamOptions(bool IncludeUsage) { /// /// Asks for the usage line. /// public static readonly ChatCompletionStreamOptions INCLUDE_USAGE = new(true); }