From c43a8872db0dd2812e93ae025b91a89ec305be71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=93=9D=E8=8A=B7=E6=80=A1?= Date: Mon, 26 Oct 2026 18:39:08 +0800 Subject: [PATCH] fix(frontend): highlight selected models missing upstream (#528) * fix(frontend): highlight unavailable selected models * fix(frontend): refine model catalog warnings and refresh control Co-authored-by: Codex --------- Co-authored-by: Zyy Co-authored-by: Codex --- frontend/src/i18n/locales/en/accounts.json | 1 + .../src/i18n/locales/zh-Hans/accounts.json | 1 + .../src/i18n/locales/zh-Hant/accounts.json | 1 + .../components/AccountModelAccessField.vue | 70 +++++++++++++------ 4 files changed, 52 insertions(+), 21 deletions(-) diff --git a/frontend/src/i18n/locales/en/accounts.json b/frontend/src/i18n/locales/en/accounts.json index ed169a052..ed3a76d26 100644 --- a/frontend/src/i18n/locales/en/accounts.json +++ b/frontend/src/i18n/locales/en/accounts.json @@ -195,6 +195,7 @@ "searchOrEnterIdAndPressEnter": "Search or enter ID and press Enter to add", "selectModel": "Select model", "notInCurrentModelCatalog": "{id} (not in the current model catalog)", + "modelCatalogMissingHint": "The current upstream catalog does not list this model, your selection has been kept", "loadingModel": "Loading model", "noMatchingModels": "No matching models", "noModels": "No models", diff --git a/frontend/src/i18n/locales/zh-Hans/accounts.json b/frontend/src/i18n/locales/zh-Hans/accounts.json index c0d4bf408..2c5956346 100644 --- a/frontend/src/i18n/locales/zh-Hans/accounts.json +++ b/frontend/src/i18n/locales/zh-Hans/accounts.json @@ -195,6 +195,7 @@ "searchOrEnterIdAndPressEnter": "搜索或输入 ID,回车添加", "selectModel": "选择模型", "notInCurrentModelCatalog": "{id}(当前目录未返回)", + "modelCatalogMissingHint": "当前上游目录未返回此模型,已保留你的选择", "loadingModel": "加载模型中", "noMatchingModels": "无匹配模型", "noModels": "暂无模型", diff --git a/frontend/src/i18n/locales/zh-Hant/accounts.json b/frontend/src/i18n/locales/zh-Hant/accounts.json index ba4063622..8d27e1a5f 100644 --- a/frontend/src/i18n/locales/zh-Hant/accounts.json +++ b/frontend/src/i18n/locales/zh-Hant/accounts.json @@ -195,6 +195,7 @@ "searchOrEnterIdAndPressEnter": "搜索或輸入 ID,回車添加", "selectModel": "選擇模型", "notInCurrentModelCatalog": "{id}(當前目錄未返回)", + "modelCatalogMissingHint": "當前上游目錄未返回此模型,已保留你的選擇", "loadingModel": "加載模型中", "noMatchingModels": "無匹配模型", "noModels": "暫無模型", diff --git a/frontend/src/views/accounts/components/AccountModelAccessField.vue b/frontend/src/views/accounts/components/AccountModelAccessField.vue index 7ee8a15e2..7cb07469d 100644 --- a/frontend/src/views/accounts/components/AccountModelAccessField.vue +++ b/frontend/src/views/accounts/components/AccountModelAccessField.vue @@ -1,9 +1,9 @@