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,