feat: 支持非流式传输功能
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Yi.Framework.AiHub.Application.Contracts.Dtos;
|
||||
|
||||
public class MessageInputDto
|
||||
{
|
||||
public string Content { get; set; }
|
||||
public string? Content { get; set; }
|
||||
public string Role { get; set; }
|
||||
public string ModelId { get; set; }
|
||||
public string? Remark { get; set; }
|
||||
|
||||
@@ -9,9 +9,9 @@ public class ChatCompletionsInput
|
||||
public string? Prompt { get; set; }
|
||||
public string Model { get; set; }
|
||||
|
||||
public decimal Temperature { get; set; }
|
||||
public decimal? Temperature { get; set; }
|
||||
|
||||
public int max_tokens { get; set; }
|
||||
public int? max_tokens { get; set; }
|
||||
}
|
||||
|
||||
public class OpenAiMessage
|
||||
|
||||
@@ -56,7 +56,7 @@ public class Choice
|
||||
/// <summary>
|
||||
/// 结束原因,可能为空
|
||||
/// </summary>
|
||||
public string FinishReason { get; set; }
|
||||
public string? FinishReason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 内容过滤结果
|
||||
|
||||
Reference in New Issue
Block a user