AI-Studio/app/MindWork AI Studio/Provider/Mistral/ChatRequest.cs
2024-07-01 20:11:19 +02:00

17 lines
632 B
C#

namespace AIStudio.Provider.Mistral;
/// <summary>
/// The OpenAI chat request model.
/// </summary>
/// <param name="Model">Which model to use for chat completion.</param>
/// <param name="Messages">The chat messages.</param>
/// <param name="Stream">Whether to stream the chat completion.</param>
/// <param name="RandomSeed">The seed for the chat completion.</param>
/// <param name="SafePrompt">Whether to inject a safety prompt before all conversations.</param>
public readonly record struct ChatRequest(
string Model,
IList<RegularMessage> Messages,
bool Stream,
int RandomSeed,
bool SafePrompt = false
);