using System.Text.Json.Serialization; using AIStudio.Provider.OpenAI; namespace AIStudio.Provider.Groq; /// /// The Groq chat request model. /// /// Which model to use for chat completion. /// The chat messages. /// Whether to stream the chat completion. /// The seed for the chat completion. public readonly record struct ChatRequest( string Model, IList Messages, bool Stream, int Seed ) { // Attention: The "required" modifier is not supported for [JsonExtensionData]. [JsonExtensionData] public IDictionary AdditionalApiParameters { get; init; } = new Dictionary(); }