feat: 完成token模块

This commit is contained in:
ccnetcore
2025-07-03 22:44:52 +08:00
parent 15be047371
commit e996bc2d7f
4 changed files with 13 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
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; }
public decimal Temperature { get; set; }
public int max_tokens { get; set; }
}
public class OpenAiMessage
{
public string Role { get; set; }
public string Content { get; set; }
}