feat: 新增模型列表 IsPremiumPackage 字段并在 AiChatService 中设置

- 在 Yi.Framework.AiHub.Application.Contracts.Dtos.ModelGetListOutput 中新增 bool 属性 IsPremiumPackage。
- 在 Yi.Framework.AiHub.Application.Services.Chat.AiChatService 的模型映射中设置该属性,判断逻辑为 PremiumPackageConst.ModeIds.Contains(x.ModelId)。
- 便于前端区分并展示“尊享包”模型。
This commit is contained in:
chenchun
2025-11-25 09:59:31 +08:00
parent 688d93e5c1
commit afe9c8bcae
2 changed files with 7 additions and 1 deletions

View File

@@ -87,7 +87,8 @@ public class AiChatService : ApplicationService
SystemPrompt = null,
ApiHost = null,
ApiKey = null,
Remark = x.Description
Remark = x.Description,
IsPremiumPackage = PremiumPackageConst.ModeIds.Contains(x.ModelId)
}).ToListAsync();
return output;
}