From 9a334101ca6c2a7bf6f1bdeab1465becdabbc66c Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Mon, 30 Jun 2025 21:58:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dai=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.AiHub.Domain/AiChat/Impl/AzureChatService.cs | 2 +- .../AiChat/Impl/AzureRestChatService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/AiChat/Impl/AzureChatService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/AiChat/Impl/AzureChatService.cs index 6496a341..fc6dca8e 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/AiChat/Impl/AzureChatService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/AiChat/Impl/AzureChatService.cs @@ -28,7 +28,7 @@ public class AzureChatService : IChatService var response = chatClient.CompleteChatStreamingAsync(messages, new ChatCompletionOptions() { - MaxOutputTokenCount = 2048 + // MaxOutputTokenCount = 2048 }, cancellationToken: cancellationToken); await foreach (StreamingChatCompletionUpdate update in response) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/AiChat/Impl/AzureRestChatService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/AiChat/Impl/AzureRestChatService.cs index 9035569a..96cbe54a 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/AiChat/Impl/AzureRestChatService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/AiChat/Impl/AzureRestChatService.cs @@ -30,7 +30,7 @@ public class AzureRestChatService : IChatService content = x.Content.FirstOrDefault()?.Text }).ToList(), stream = true, - max_tokens = 2048, + // max_tokens = 2048, // temperature = 0.8, // top_p = 0.1, // presence_penalty = 0,