From 2732df24af81acc91599ffed96bf0e6a4e3d6018 Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Wed, 25 Jun 2025 22:45:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.AiHub.Application/Services/AiChatService.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/AiChatService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/AiChatService.cs index 58c9b489..ec75cb75 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/AiChatService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/AiChatService.cs @@ -59,7 +59,9 @@ public class AiChatService : ApplicationService /// public async Task> GetModelAsync() { - var output = await _aiModelRepository._DbQueryable.Select(x => new ModelGetListOutput + var output = await _aiModelRepository._DbQueryable + .OrderBy(x=>x.OrderNum) + .Select(x => new ModelGetListOutput { Id = x.Id, Category = "chat",