diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/AiGateWayManager.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/AiGateWayManager.cs index 4bbe1d30..d8fdbd51 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/AiGateWayManager.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Domain/Managers/AiGateWayManager.cs @@ -92,7 +92,14 @@ public class AiGateWayManager : DomainService { throw new UserFriendlyException($"【{modelId}】模型当前版本【{modelApiType}】格式不支持"); } + // ✅ 统一处理 -nx 后缀(网关层模型规范化) + if (!string.IsNullOrEmpty(aiModelDescribe.ModelId) && + aiModelDescribe.ModelId.EndsWith("-nx", StringComparison.OrdinalIgnoreCase)) + { + aiModelDescribe.ModelId = aiModelDescribe.ModelId[..^3]; + } + return aiModelDescribe; }