diff --git a/src/LLMService.Shared/Models/AIFeatureModel.cs b/src/LLMService.Shared/Models/AIFeatureModel.cs index 457dc8d..6496aee 100644 --- a/src/LLMService.Shared/Models/AIFeatureModel.cs +++ b/src/LLMService.Shared/Models/AIFeatureModel.cs @@ -43,11 +43,11 @@ public class AIFeatureModel /// /// /// - /// 默认 1.5 + /// 默认 1.0 /// - /// 1.5 + /// 1.0 [JsonPropertyName("penalty_score")] - public float PenaltyScore { get; set; } = 1.5F; + public float PenaltyScore { get; set; } = 1.0F; /// /// 是否以流式接口的形式返回数据,默认false /// diff --git a/src/LLMService.Shared/Models/BaiduWenxinChatResponse.cs b/src/LLMService.Shared/Models/BaiduWenxinChatResponse.cs index b3b508c..d95477a 100644 --- a/src/LLMService.Shared/Models/BaiduWenxinChatResponse.cs +++ b/src/LLMService.Shared/Models/BaiduWenxinChatResponse.cs @@ -4,7 +4,7 @@ namespace LLMService.Shared.Models { /// - /// + /// baidu API response model /// public class BaiduWenxinChatResponse /*: IServerSentEventData*/ { @@ -91,7 +91,7 @@ public class BaiduWenxinChatResponse /*: IServerSentEventData*/ } /// - /// + /// baidu API response wrapper /// /// public class ChatApiResponse : BaiduWenxinChatResponse @@ -114,33 +114,9 @@ public class ChatApiResponse : BaiduWenxinChatResponse } - /// - /// - /// - public class ResponseStream - { - /// - /// Gets or sets the data. - /// - /// - /// The data. - /// - [JsonPropertyName("data")] - public T Data { get; set; } - - /// - /// Unfolds this instance. - /// - /// - public T Unfold() - { - return Data; - } - } - /// - /// + /// baidu API token usage per request. /// public class BaiduWenxinUsage { @@ -169,4 +145,28 @@ public class BaiduWenxinUsage [JsonPropertyName("total_tokens")] public int TotalTokens { get; set; } } + + /// + /// + /// + public class ResponseStream + { + /// + /// Gets or sets the data. + /// + /// + /// The data. + /// + [JsonPropertyName("data")] + public T Data { get; set; } + + /// + /// Unfolds this instance. + /// + /// + public T Unfold() + { + return Data; + } + } } diff --git a/src/LLMServiceHub/Startup.cs b/src/LLMServiceHub/Startup.cs index 045dc90..93152aa 100644 --- a/src/LLMServiceHub/Startup.cs +++ b/src/LLMServiceHub/Startup.cs @@ -397,7 +397,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env, AppSetti } option.RoutePrefix = "api-docs"; - option.DocumentTitle = "幸福泉百度千帆大模型 API"; + option.DocumentTitle = "百度千帆大模型 API"; option.DefaultModelRendering(Swashbuckle.AspNetCore.SwaggerUI.ModelRendering.Model); option.DefaultModelExpandDepth(4);