2024-05-04 09:11:23 +00:00
|
|
|
namespace AIStudio.Provider.OpenAI;
|
|
|
|
|
|
|
|
/// <summary>
|
2025-09-01 20:37:05 +00:00
|
|
|
/// The OpenAI's legacy chat completion request model.
|
2024-05-04 09:11:23 +00:00
|
|
|
/// </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>
|
2025-09-01 20:37:05 +00:00
|
|
|
public record ChatCompletionAPIRequest(
|
2024-05-04 09:11:23 +00:00
|
|
|
string Model,
|
|
|
|
IList<Message> Messages,
|
2025-08-31 15:22:12 +00:00
|
|
|
bool Stream
|
2025-09-01 20:37:05 +00:00
|
|
|
)
|
|
|
|
{
|
|
|
|
public ChatCompletionAPIRequest() : this(string.Empty, [], true)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|