From cad145f067acb417801cbf41ac27dadfb59619e7 Mon Sep 17 00:00:00 2001 From: chenchun Date: Mon, 5 Jan 2026 10:29:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20GetProviderListAsyn?= =?UTF-8?q?c=20=E6=9F=A5=E8=AF=A2=E8=BF=87=E6=BB=A4=E4=B8=8E=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=EF=BC=8C=E9=81=BF=E5=85=8D=E9=81=97=E6=BC=8F=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Chat/ModelService.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/ModelService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/ModelService.cs index af9bcb00..b811c00f 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/ModelService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/ModelService.cs @@ -79,10 +79,9 @@ public class ModelService : ApplicationService, IModelService public async Task> GetProviderListAsync() { var providers = await _modelRepository._DbQueryable - .Where(x => !x.IsDeleted && x.IsEnabled) + .Where(x => x.IsEnabled) .Where(x => !string.IsNullOrEmpty(x.ProviderName)) .GroupBy(x => x.ProviderName) - .OrderBy(x => x.OrderNum) .Select(x => x.ProviderName) .ToListAsync();