From e39cbaf5e74f66a4b42520d1e37513667046254d Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Sat, 3 Jan 2026 01:45:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/Chat/AiImageService.cs | 3 ++- Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/AiImageService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/AiImageService.cs index f9ae39c0..4e4c44a9 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/AiImageService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/Chat/AiImageService.cs @@ -334,11 +334,12 @@ public class AiImageService : ApplicationService /// /// [HttpPost("ai-image/model")] + [AllowAnonymous] public async Task> GetModelAsync() { var output = await _aiModelRepository._DbQueryable .Where(x => x.ModelType == ModelTypeEnum.Image) - .Where(x => x.ModelApiType == ModelApiTypeEnum.OpenAi) + .Where(x => x.ModelApiType == ModelApiTypeEnum.GenerateContent) .OrderByDescending(x => x.OrderNum) .Select(x => new ModelGetListOutput { diff --git a/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs b/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs index 9f21193b..436d8c92 100644 --- a/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs +++ b/Yi.Abp.Net8/src/Yi.Abp.Web/YiAbpWebModule.cs @@ -113,7 +113,7 @@ namespace Yi.Abp.Web //本地开发环境,可以禁用作业执行 if (host.IsDevelopment()) { - //Configure(options => { options.IsEnabled = false; }); + Configure(options => { options.IsEnabled = false; }); } //请求日志