feat: 模型列表返回中新增图标地址字段
在模型列表 DTO 中新增 IconUrl 属性,并在 AiChatService 查询映射时返回模型图标地址,支持前端展示模型图标。
This commit is contained in:
@@ -43,4 +43,9 @@ public class ModelGetListOutput
|
||||
/// 模型Api类型,现支持同一个模型id,多种接口格式
|
||||
/// </summary>
|
||||
public ModelApiTypeEnum ModelApiType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 模型图标URL
|
||||
/// </summary>
|
||||
public string? IconUrl { get; set; }
|
||||
}
|
||||
@@ -110,6 +110,7 @@ public class AiChatService : ApplicationService
|
||||
Remark = x.Description,
|
||||
IsPremiumPackage = x.IsPremium,
|
||||
ModelApiType = x.ModelApiType,
|
||||
IconUrl = x.IconUrl
|
||||
}).ToListAsync();
|
||||
|
||||
output.ForEach(x =>
|
||||
|
||||
Reference in New Issue
Block a user