namespace AIStudio.Provider.OpenAI;
///
/// Data model for a line in the response stream, for streaming chat completions.
///
/// The id of the response.
/// The object describing the response.
/// The timestamp of the response.
/// The model used for the response.
/// The system fingerprint; together with the seed, this allows you to reproduce the response.
/// The choices made by the AI.
public record ChatCompletionResponseStreamLine(string Id, string Object, uint Created, string Model, string SystemFingerprint, IList Choices) : IResponseStreamLine
{
public ChatCompletionResponseStreamLine() : this(string.Empty, string.Empty, 0, string.Empty, string.Empty, [])
{
}
///
public bool ContainsContent() => this.Choices.Count > 0;
///
public ContentStreamChunk GetContent() => new(this.Choices[0].Delta.Content, []);
#region Implementation of IAnnotationStreamLine
///
public bool ContainsSources() => false;
///
public IList GetSources() => [];
#endregion
}