diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 87379e65..c6cc4eb7 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -342,18 +342,17 @@ "vertex_add_modal_title": "Add Vertex API Configuration", "vertex_add_modal_key_label": "API Key:", "vertex_add_modal_key_placeholder": "Please enter Vertex API key", - "vertex_add_modal_url_label": "Base URL (Required):", + "vertex_add_modal_url_label": "Base URL:", "vertex_add_modal_url_placeholder": "e.g.: https://example.com/api", "vertex_add_modal_proxy_label": "Proxy URL (Optional):", "vertex_add_modal_proxy_placeholder": "e.g.: socks5://proxy.example.com:1080", "vertex_edit_modal_title": "Edit Vertex API Configuration", "vertex_edit_modal_key_label": "API Key:", - "vertex_edit_modal_url_label": "Base URL (Required):", + "vertex_edit_modal_url_label": "Base URL:", "vertex_edit_modal_proxy_label": "Proxy URL (Optional):", "vertex_delete_confirm": "Are you sure you want to delete this Vertex configuration?", - "vertex_models_label": "Model aliases (alias required):", + "vertex_models_label": "Model aliases:", "vertex_models_add_btn": "Add Mapping", - "vertex_models_hint": "Each alias needs both the original model and the alias.", "vertex_models_count": "Alias count", "ampcode_title": "Amp CLI Integration (ampcode)", "ampcode_modal_title": "Configure Ampcode", @@ -1373,7 +1372,6 @@ "vertex_config_added": "Vertex configuration added successfully", "vertex_config_updated": "Vertex configuration updated successfully", "vertex_config_deleted": "Vertex configuration deleted successfully", - "vertex_base_url_required": "Please enter the Vertex Base URL", "config_enabled": "Configuration enabled", "config_disabled": "Configuration disabled", "field_required": "Required fields cannot be empty", diff --git a/src/i18n/locales/ru.json b/src/i18n/locales/ru.json index 261b12c1..bc7111e1 100644 --- a/src/i18n/locales/ru.json +++ b/src/i18n/locales/ru.json @@ -342,18 +342,17 @@ "vertex_add_modal_title": "Добавление конфигурации Vertex API", "vertex_add_modal_key_label": "API-ключ:", "vertex_add_modal_key_placeholder": "Введите API-ключ Vertex", - "vertex_add_modal_url_label": "Базовый URL (обязательно):", + "vertex_add_modal_url_label": "Базовый URL:", "vertex_add_modal_url_placeholder": "например: https://example.com/api", "vertex_add_modal_proxy_label": "URL прокси (необязательно):", "vertex_add_modal_proxy_placeholder": "например: socks5://proxy.example.com:1080", "vertex_edit_modal_title": "Редактирование конфигурации Vertex API", "vertex_edit_modal_key_label": "API-ключ:", - "vertex_edit_modal_url_label": "Базовый URL (обязательно):", + "vertex_edit_modal_url_label": "Базовый URL:", "vertex_edit_modal_proxy_label": "URL прокси (необязательно):", "vertex_delete_confirm": "Удалить эту конфигурацию Vertex?", - "vertex_models_label": "Псевдонимы моделей (требуется псевдоним):", + "vertex_models_label": "Псевдонимы моделей:", "vertex_models_add_btn": "Добавить сопоставление", - "vertex_models_hint": "Каждому псевдониму требуются исходная модель и псевдоним.", "vertex_models_count": "Количество псевдонимов", "ampcode_title": "Интеграция Amp CLI (ampcode)", "ampcode_modal_title": "Настройка Ampcode", @@ -1378,7 +1377,6 @@ "vertex_config_added": "Конфигурация Vertex успешно добавлена", "vertex_config_updated": "Конфигурация Vertex успешно обновлена", "vertex_config_deleted": "Конфигурация Vertex успешно удалена", - "vertex_base_url_required": "Введите базовый URL Vertex", "config_enabled": "Конфигурация включена", "config_disabled": "Конфигурация выключена", "field_required": "Обязательные поля не могут быть пустыми", diff --git a/src/i18n/locales/zh-CN.json b/src/i18n/locales/zh-CN.json index ca186657..e01a95b8 100644 --- a/src/i18n/locales/zh-CN.json +++ b/src/i18n/locales/zh-CN.json @@ -342,18 +342,17 @@ "vertex_add_modal_title": "添加Vertex API配置", "vertex_add_modal_key_label": "API密钥:", "vertex_add_modal_key_placeholder": "请输入Vertex API密钥", - "vertex_add_modal_url_label": "Base URL (必填):", + "vertex_add_modal_url_label": "Base URL:", "vertex_add_modal_url_placeholder": "例如: https://example.com/api", "vertex_add_modal_proxy_label": "代理 URL (可选):", "vertex_add_modal_proxy_placeholder": "例如: socks5://proxy.example.com:1080", "vertex_edit_modal_title": "编辑Vertex API配置", "vertex_edit_modal_key_label": "API密钥:", - "vertex_edit_modal_url_label": "Base URL (必填):", + "vertex_edit_modal_url_label": "Base URL:", "vertex_edit_modal_proxy_label": "代理 URL (可选):", "vertex_delete_confirm": "确定要删除这个Vertex配置吗?", - "vertex_models_label": "模型别名 (别名必填):", + "vertex_models_label": "模型别名:", "vertex_models_add_btn": "添加映射", - "vertex_models_hint": "每条别名需要填写原模型与别名。", "vertex_models_count": "别名数量", "ampcode_title": "Amp CLI 集成 (ampcode)", "ampcode_modal_title": "配置 Ampcode", @@ -1373,7 +1372,6 @@ "vertex_config_added": "Vertex配置添加成功", "vertex_config_updated": "Vertex配置更新成功", "vertex_config_deleted": "Vertex配置删除成功", - "vertex_base_url_required": "请填写Vertex Base URL", "config_enabled": "配置已启用", "config_disabled": "配置已停用", "field_required": "必填字段不能为空", diff --git a/src/pages/AiProvidersVertexEditPage.tsx b/src/pages/AiProvidersVertexEditPage.tsx index 90596e0a..06405fa8 100644 --- a/src/pages/AiProvidersVertexEditPage.tsx +++ b/src/pages/AiProvidersVertexEditPage.tsx @@ -192,10 +192,6 @@ export function AiProvidersVertexEditPage() { const trimmedBaseUrl = (form.baseUrl ?? '').trim(); const baseUrl = trimmedBaseUrl || undefined; - if (!baseUrl) { - showNotification(t('notification.vertex_base_url_required'), 'error'); - return; - } setSaving(true); setError(''); @@ -347,7 +343,6 @@ export function AiProvidersVertexEditPage() { removeButtonAriaLabel={t('common.delete')} disabled={disableControls || saving} /> -