2024-07-01 17:44:07 +00:00
|
|
|
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>
|
2024-07-01 18:07:29 +00:00
|
|
|
/// <param name="RandomSeed">The seed for the chat completion.</param>
|
2024-07-01 17:44:07 +00:00
|
|
|
/// <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
|
|
|
|
);
|