feat: 完成api接口搭建
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -5,7 +5,7 @@ public class SendMessageOutputDto
|
||||
/// <summary>
|
||||
/// 唯一标识符
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 对象类型
|
||||
|
||||
Reference in New Issue
Block a user