using System.Text.Json.Serialization;
namespace AIStudio.Provider.Mistral;
///
/// The OpenAI 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.
/// Whether to inject a safety prompt before all conversations.
public readonly record struct ChatRequest(
string Model,
IList Messages,
bool Stream,
int RandomSeed,
bool SafePrompt = false
)
{
// Attention: The "required" modifier is not supported for [JsonExtensionData].
[JsonExtensionData]
public IDictionary AdditionalApiParameters { get; init; } = new Dictionary();
}