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 fe894b17..5a7f9c70 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 @@ -18,7 +18,8 @@ public class AzureRestChatService : IChatService [EnumeratorCancellation] CancellationToken cancellationToken) { // 设置API URL - var apiUrl = $"{aiModelDescribe.Endpoint}models/chat/completions"; + var apiUrl = $"{aiModelDescribe.Endpoint}"; + // 准备请求内容 var requestBody = new { @@ -31,8 +32,8 @@ public class AzureRestChatService : IChatService max_tokens = 2048, temperature = 0.8, top_p = 0.1, - presence_penalty = 0, - frequency_penalty = 0, + // presence_penalty = 0, + // frequency_penalty = 0, model = aiModelDescribe.ModelId };