// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Linq;

namespace OpenAI.Chat
{
    public partial class StreamingChatCompletionUpdate
    {
        internal IDictionary<string, BinaryData> SerializedAdditionalRawData { get; set; }
        internal StreamingChatCompletionUpdate(string completionId, IEnumerable<InternalCreateChatCompletionStreamResponseChoice> choices, DateTimeOffset createdAt, string model)
        {
            Argument.AssertNotNull(completionId, nameof(completionId));
            Argument.AssertNotNull(choices, nameof(choices));
            Argument.AssertNotNull(model, nameof(model));

            CompletionId = completionId;
            Choices = choices.ToList();
            CreatedAt = createdAt;
            Model = model;
        }

        internal StreamingChatCompletionUpdate(string completionId, IReadOnlyList<InternalCreateChatCompletionStreamResponseChoice> choices, DateTimeOffset createdAt, string model, InternalCreateChatCompletionStreamResponseServiceTier? serviceTier, string systemFingerprint, InternalCreateChatCompletionStreamResponseObject @object, ChatTokenUsage usage, IDictionary<string, BinaryData> serializedAdditionalRawData)
        {
            CompletionId = completionId;
            Choices = choices;
            CreatedAt = createdAt;
            Model = model;
            ServiceTier = serviceTier;
            SystemFingerprint = systemFingerprint;
            Object = @object;
            Usage = usage;
            SerializedAdditionalRawData = serializedAdditionalRawData;
        }

        internal StreamingChatCompletionUpdate()
        {
        }
        public string Model { get; }
        public string SystemFingerprint { get; }
    }
}
