AI-Studio/app/MindWork AI Studio/Provider/OpenAI/ChatCompletionAPIRequest.cs

18 lines
508 B
C#
Raw Normal View History

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,
bool Stream
2025-09-01 20:37:05 +00:00
)
{
public ChatCompletionAPIRequest() : this(string.Empty, [], true)
{
}
}