2025-07-02 23:30:29 +08:00
|
|
|
|
namespace Yi.Framework.AiHub.Application.Contracts.Dtos.OpenAiDto;
|
|
|
|
|
|
|
|
|
|
|
|
public class ChatCompletionsInput
|
|
|
|
|
|
{
|
|
|
|
|
|
public List<OpenAiMessage> Messages { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool Stream { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string? Prompt { get; set; }
|
|
|
|
|
|
public string Model { get; set; }
|
|
|
|
|
|
|
2025-07-09 19:12:53 +08:00
|
|
|
|
public decimal? Temperature { get; set; }
|
2025-07-02 23:30:29 +08:00
|
|
|
|
|
2025-07-09 19:12:53 +08:00
|
|
|
|
public int? max_tokens { get; set; }
|
2025-07-02 23:30:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class OpenAiMessage
|
|
|
|
|
|
{
|
|
|
|
|
|
public string Role { get; set; }
|
|
|
|
|
|
public string Content { get; set; }
|
|
|
|
|
|
}
|