From 12eb6c73c3def67d13ce0e2f1fff95628daedb27 Mon Sep 17 00:00:00 2001 From: chenchun Date: Thu, 26 Jun 2025 17:54:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90=E6=8E=A5=E5=85=A5cla?= =?UTF-8?q?ude?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AiChat/Impl/AzureRestChatService.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 };