diff --git a/dashboard/src/i18n/locales/en-US/features/provider.json b/dashboard/src/i18n/locales/en-US/features/provider.json index 2f1ffeb63..ebddbee95 100644 --- a/dashboard/src/i18n/locales/en-US/features/provider.json +++ b/dashboard/src/i18n/locales/en-US/features/provider.json @@ -1,6 +1,6 @@ { - "title": "Service Provider Management", - "subtitle": "Manage model service providers", + "title": "Providers", + "subtitle": "Manage model providers", "providers": { "title": "Service Providers", "settings": "Settings", @@ -121,6 +121,14 @@ "deleteSuccess": "Model deleted successfully", "deleteError": "Failed to delete model", "testSuccess": "Model {id} test passed", - "testError": "Model test failed" + "testError": "Model test failed", + "searchPlaceholder": "Search models or ID", + "manualAddButton": "Custom Model", + "manualDialogTitle": "Add Custom Model", + "manualDialogModelLabel": "Model ID (e.g. gpt-4.1-mini)", + "manualDialogPreviewLabel": "Display ID (auto generated)", + "manualDialogPreviewHint": "Generated as sourceId/modelId", + "manualModelRequired": "Please enter a model ID", + "manualModelExists": "Model already exists" } } \ No newline at end of file diff --git a/dashboard/src/i18n/locales/zh-CN/features/provider.json b/dashboard/src/i18n/locales/zh-CN/features/provider.json index 8733c6e52..bfed12bb3 100644 --- a/dashboard/src/i18n/locales/zh-CN/features/provider.json +++ b/dashboard/src/i18n/locales/zh-CN/features/provider.json @@ -122,6 +122,14 @@ "deleteSuccess": "模型删除成功", "deleteError": "模型删除失败", "testSuccess": "模型 {id} 测试通过", - "testError": "模型测试失败" + "testError": "模型测试失败", + "searchPlaceholder": "搜索模型或 ID", + "manualAddButton": "自定义模型", + "manualDialogTitle": "添加自定义模型", + "manualDialogModelLabel": "模型 ID(如 gpt-4.1-mini)", + "manualDialogPreviewLabel": "显示 ID(自动生成)", + "manualDialogPreviewHint": "生成规则:源ID/模型ID", + "manualModelRequired": "请输入模型 ID", + "manualModelExists": "该模型已存在" } } \ No newline at end of file diff --git a/dashboard/src/views/ProviderPage.vue b/dashboard/src/views/ProviderPage.vue index 4a51c6578..330cbcf95 100644 --- a/dashboard/src/views/ProviderPage.vue +++ b/dashboard/src/views/ProviderPage.vue @@ -127,18 +127,25 @@