fix(provider): split partial model fetch warnings from errors

This commit is contained in:
zhefox
2026-05-26 17:45:06 +08:00
parent aa409a8a9c
commit 1173a4d9d5
14 changed files with 171 additions and 48 deletions
@@ -357,8 +357,8 @@ async function applyAutoMatchFromKey(key: AutoMatchKey) {
const result = await fetchCachedModels(props.providerId, key.id, true)
if (!props.open) return
if (result.error && result.models.length > 0) {
showWarning(`部分格式获取失败: ${result.error}`)
if (result.warning) {
showWarning(`部分格式获取失败: ${result.warning}`)
}
if (result.models.length === 0) {