+
{t("models.catalog.found", {
count: filteredModels.length,
@@ -259,9 +262,7 @@ export function CatalogDialog({
onClick={() => toggleAll(entry.id, entry.models)}
className="text-primary hover:underline"
>
- {filteredModels.every((m) =>
- entrySelected.has(m.id),
- )
+ {filteredModels.every((m) => entrySelected.has(m.id))
? t("models.catalog.deselectAll")
: t("models.catalog.selectAll")}
@@ -270,7 +271,7 @@ export function CatalogDialog({
{filteredModels.map((m) => (
{entrySelected.size > 0 && (
-
-
+
+ {PROVIDER_MAP.get(entry.provider)?.requiresApiKey !==
+ false && (
+
+ {t("models.catalog.needApiKey")}
+
+ )}
+
+
+
)}
diff --git a/web/frontend/src/i18n/locales/en.json b/web/frontend/src/i18n/locales/en.json
index 61b1eb55e..d6335d6dc 100644
--- a/web/frontend/src/i18n/locales/en.json
+++ b/web/frontend/src/i18n/locales/en.json
@@ -345,7 +345,8 @@
"selectAll": "Select All",
"deselectAll": "Deselect All",
"addSelected": "Add {{count}} Selected",
- "addSuccess": "Added {{count}} model(s) to configuration."
+ "addSuccess": "Added {{count}} model(s) to configuration.",
+ "needApiKey": "These models require an API key. You'll need to configure credentials after import."
},
"test": {
"title": "Test Model Connectivity",
diff --git a/web/frontend/src/i18n/locales/zh.json b/web/frontend/src/i18n/locales/zh.json
index 727587d89..f9e733a50 100644
--- a/web/frontend/src/i18n/locales/zh.json
+++ b/web/frontend/src/i18n/locales/zh.json
@@ -347,7 +347,8 @@
"selectAll": "全选",
"deselectAll": "取消全选",
"addSelected": "添加 {{count}} 个选中模型",
- "addSuccess": "已添加 {{count}} 个模型到配置中。"
+ "addSuccess": "已添加 {{count}} 个模型到配置中。",
+ "needApiKey": "这些模型需要 API Key。导入后需要配置凭证才能使用。"
},
"test": {
"title": "测试模型连通性",
@@ -828,4 +829,4 @@
"description": "需要更多帮助?点击右上角的文档按钮,查看详细的使用文档和配置指南。"
}
}
-}
\ No newline at end of file
+}