From 629012d32a477ff8b192b0b8fdf18f4b7b7e9a5f Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Sat, 10 Jan 2026 15:42:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=81=8A=E5=A4=A9=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=B8=8D=E5=86=8D=E9=99=90=E5=88=B6=20Comple?= =?UTF-8?q?tions=20=E6=8E=A5=E5=8F=A3=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除对 ModelApiType 为 Completions 的过滤条件,使聊天服务可使用更多类型的模型配置。 --- .../Services/Chat/AiChatService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/AiChatService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/AiChatService.cs index 7ce897c7..c30e0a77 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/AiChatService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/AiChatService.cs @@ -99,7 +99,7 @@ public class AiChatService : ApplicationService var output = await _aiModelRepository._DbQueryable .Where(x => x.IsEnabled == true) .Where(x => x.ModelType == ModelTypeEnum.Chat) - .Where(x => x.ModelApiType == ModelApiTypeEnum.Completions) + // .Where(x => x.ModelApiType == ModelApiTypeEnum.Completions) .OrderByDescending(x => x.OrderNum) .Select(x => new ModelGetListOutput {