From 176cf84369a9f7d8851bebc0d5da5df73d4483bf Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Thu, 21 Aug 2025 01:16:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20AiGateWayManager=20?= =?UTF-8?q?=E4=B8=AD=E5=8F=AF=E8=83=BD=E7=9A=84=E7=A9=BA=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.AiHub.Domain/Managers/AiGateWayManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/AiGateWayManager.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/AiGateWayManager.cs index 3206ee64..4b2b2475 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/AiGateWayManager.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/AiGateWayManager.cs @@ -132,7 +132,7 @@ public class AiGateWayManager : DomainService await _aiMessageManager.CreateSystemMessageAsync(userId.Value, sessionId, new MessageInputDto { - Content = data.Choices.FirstOrDefault()?.Delta.Content, + Content = data.Choices?.FirstOrDefault()?.Delta.Content, ModelId = request.Model, TokenUsage = data.Usage });