From a2da4c36fed02c12a1215f99eaf520532deee439 Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Sun, 11 Jan 2026 13:53:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A8=A1=E5=9E=8B=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E4=B8=AD=E6=96=B0=E5=A2=9E=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在模型列表 DTO 中新增 IconUrl 属性,并在 AiChatService 查询映射时返回模型图标地址,支持前端展示模型图标。 --- .../Dtos/ModelGetListOutput.cs | 5 +++++ .../Services/Chat/AiChatService.cs | 1 + 2 files changed, 6 insertions(+) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application.Contracts/Dtos/ModelGetListOutput.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application.Contracts/Dtos/ModelGetListOutput.cs index 1b51665b..c18d0e16 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application.Contracts/Dtos/ModelGetListOutput.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application.Contracts/Dtos/ModelGetListOutput.cs @@ -43,4 +43,9 @@ public class ModelGetListOutput /// 模型Api类型,现支持同一个模型id,多种接口格式 /// public ModelApiTypeEnum ModelApiType { get; set; } + + /// + /// 模型图标URL + /// + public string? IconUrl { get; set; } } \ No newline at end of file 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 c30e0a77..a41936e0 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 @@ -110,6 +110,7 @@ public class AiChatService : ApplicationService Remark = x.Description, IsPremiumPackage = x.IsPremium, ModelApiType = x.ModelApiType, + IconUrl = x.IconUrl }).ToListAsync(); output.ForEach(x =>