From 78111a1bc1b2e50e8df25542f673ebeae220e905 Mon Sep 17 00:00:00 2001 From: rxliuli Date: Mon, 26 Aug 2024 02:12:18 +0800 Subject: [PATCH] fix: close 5315 --- app/utils/model.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/utils/model.ts b/app/utils/model.ts index fa9888042..dda5ec832 100644 --- a/app/utils/model.ts +++ b/app/utils/model.ts @@ -72,6 +72,8 @@ export function collectModelTable( if (match) { customModelName = match[2]; customProviderName = match[3]?.slice(1) || customModelName; + } else { + [customModelName, customProviderName] = name.split("@"); } } else { [customModelName, customProviderName] = name.split("@");