feat: 聊天模型查询不再限制 Completions 接口类型

移除对 ModelApiType 为 Completions 的过滤条件,使聊天服务可使用更多类型的模型配置。
This commit is contained in:
ccnetcore
2026-01-10 15:42:22 +08:00
parent 5f2133eb50
commit 629012d32a

View File

@@ -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
{