feat: 聊天模型查询不再限制 Completions 接口类型
移除对 ModelApiType 为 Completions 的过滤条件,使聊天服务可使用更多类型的模型配置。
This commit is contained in:
@@ -99,7 +99,7 @@ public class AiChatService : ApplicationService
|
|||||||
var output = await _aiModelRepository._DbQueryable
|
var output = await _aiModelRepository._DbQueryable
|
||||||
.Where(x => x.IsEnabled == true)
|
.Where(x => x.IsEnabled == true)
|
||||||
.Where(x => x.ModelType == ModelTypeEnum.Chat)
|
.Where(x => x.ModelType == ModelTypeEnum.Chat)
|
||||||
.Where(x => x.ModelApiType == ModelApiTypeEnum.Completions)
|
// .Where(x => x.ModelApiType == ModelApiTypeEnum.Completions)
|
||||||
.OrderByDescending(x => x.OrderNum)
|
.OrderByDescending(x => x.OrderNum)
|
||||||
.Select(x => new ModelGetListOutput
|
.Select(x => new ModelGetListOutput
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user