fix: check provider name to prevent duplicate name with different config

This commit is contained in:
HynoR
2025-08-07 00:56:30 +08:00
parent adfae3263a
commit 38bc747261
3 changed files with 51 additions and 5 deletions

View File

@@ -81,7 +81,9 @@
"import_from_template": "Import from template",
"no_templates_found": "No templates found",
"select_template": "Select a template...",
"api_key_required": "API Key is required"
"api_key_required": "API Key is required",
"name_required": "Name is required",
"name_duplicate": "A provider with this name already exists"
},
"router": {

View File

@@ -81,7 +81,9 @@
"import_from_template": "从模板导入",
"no_templates_found": "未找到模板",
"select_template": "选择一个模板...",
"api_key_required": "API 密钥为必填项"
"api_key_required": "API 密钥为必填项",
"name_required": "名称为必填项",
"name_duplicate": "已存在同名供应商"
},
"router": {