{
  "title": "API 设置",
  "description": "管理 LiteLLM 提供商、端点、缓存设置和模型池",
  "tabs": {
    "providers": "提供商",
    "endpoints": "端点",
    "cache": "缓存",
    "modelPools": "模型池",
    "cliSettings": "CLI 设置"
  },
  "providers": {
    "title": "提供商",
    "description": "配置 API 提供商凭据和多密钥设置",
    "stats": {
      "total": "总提供商数",
      "enabled": "已启用"
    },
    "actions": {
      "add": "添加提供商",
      "edit": "编辑提供商",
      "delete": "删除提供商",
      "test": "测试连接",
      "multiKeySettings": "多密钥设置",
      "syncToCodexLens": "同步到 CodexLens",
      "manageModels": "管理模型",
      "addModel": "添加模型",
      "showDisabled": "显示已禁用",
      "hideDisabled": "隐藏已禁用"
    },
    "deleteConfirm": "确定要删除提供商 \"{name}\" 吗？",
    "emptyState": {
      "title": "未找到提供商",
      "message": "添加提供商以配置 API 凭据和模型。"
    },
    "apiFormat": "API 格式",
    "openaiCompatible": "OpenAI 兼容",
    "customFormat": "自定义格式",
    "apiFormatHint": "大多数提供商使用 OpenAI 兼容格式",
    "displayName": "显示名称",
    "apiKey": "API 密钥",
    "useEnvVar": "使用环境变量（例如：${OPENAI_API_KEY}）",
    "apiBaseUrl": "API 基础 URL",
    "preview": "预览",
    "enableProvider": "启用此提供商",
    "advancedSettings": "高级设置",
    "timeout": "超时",
    "timeoutHint": "请求超时时间（秒）（默认：300）",
    "maxRetries": "最大重试次数",
    "organization": "组织",
    "organizationHint": "OpenAI 特定的组织 ID",
    "apiVersion": "API 版本",
    "apiVersionHint": "Azure 特定的 API 版本（例如：2024-02-01）",
    "rpm": "RPM",
    "tpm": "TPM",
    "unlimited": "无限制",
    "proxy": "代理 URL",
    "customHeaders": "自定义请求头",
    "customHeadersHint": "JSON 格式，例如：{\"X-Custom\": \"value\"}",
    "testConnection": "测试连接",
    "connectionSuccess": "连接成功",
    "connectionFailed": "连接失败",
    "addProviderFirst": "请先添加提供商",
    "saveProviderFirst": "请先保存提供商",
    "llmModels": "LLM 模型",
    "embeddingModels": "嵌入模型",
    "rerankerModels": "重排序模型",
    "noModels": "此提供商未配置模型",
    "selectProvider": "选择提供商",
    "selectProviderHint": "选择提供商以查看和管理其模型",
    "modelSettings": "模型设置",
    "deleteModel": "删除模型",
    "multiKeySettings": "多密钥设置",
    "keyLabel": "密钥标签",
    "keyValue": "密钥值",
    "keyWeight": "权重",
    "routingStrategy": "路由策略",
    "healthCheck": "健康检查",
    "healthStatus": "健康状态",
    "lastCheck": "最后检查",
    "lastError": "最后错误",
    "lastLatency": "延迟",
    "cooldown": "冷却",
    "consecutiveFailures": "失败次数",
    "inCooldown": "冷却中",
    "healthy": "健康",
    "unhealthy": "不健康",
    "unknown": "未知",
    "justNow": "刚刚",
    "minutesAgo": "分钟前",
    "hoursAgo": "小时前",
    "daysAgo": "天前",
    "seconds": "秒",
    "testKey": "测试密钥",
    "addKey": "添加密钥",
    "enableKey": "启用",
    "disableKey": "禁用",
    "deleteKey": "删除密钥",
    "simpleShuffle": "简单随机",
    "weighted": "加权",
    "latencyBased": "基于延迟",
    "costBased": "基于成本",
    "leastBusy": "最少繁忙",
    "enableHealthCheck": "启用健康检查",
    "checkInterval": "检查间隔（秒）",
    "cooldownPeriod": "冷却周期（秒）",
    "failureThreshold": "失败阈值",
    "addLlmModel": "添加 LLM 模型",
    "addEmbeddingModel": "添加嵌入模型",
    "addRerankerModel": "添加重排序模型",
    "selectFromPresets": "从预设选择",
    "customModel": "自定义模型...",
    "modelId": "模型 ID",
    "modelName": "模型名称",
    "modelSeries": "模型系列",
    "contextWindow": "上下文窗口",
    "capabilities": "功能",
    "streaming": "流式传输",
    "functionCalling": "函数调用",
    "vision": "视觉",
    "embeddingMaxTokens": "最大令牌数",
    "rerankerTopK": "Top K",
    "rerankerTopKHint": "返回的结果数量",
    "embeddingDimensions": "维度",
    "description": "描述",
    "optional": "可选",
    "modelIdExists": "模型 ID 已存在",
    "useModelTreeToManage": "使用提供商卡片管理模型",
    "endpointPreview": "端点预览",
    "modelBaseUrlOverride": "基础 URL 覆盖",
    "modelBaseUrlHint": "为此模型覆盖基础 URL",
    "basicInfo": "基本信息",
    "endpointSettings": "端点设置",
    "apiBaseUpdated": "基础 URL 已更新",
    "showAll": "显示全部",
    "saveError": "保存提供商失败",
    "deleteError": "删除提供商失败",
    "toggleError": "切换提供商状态失败",
    "testError": "测试提供商失败"
  },
  "endpoints": {
    "title": "端点",
    "description": "配置带有缓存策略的自定义 API 端点",
    "stats": {
      "totalEndpoints": "总端点数",
      "cachedEndpoints": "已缓存端点"
    },
    "actions": {
      "add": "添加端点",
      "edit": "编辑端点",
      "delete": "删除端点",
      "enable": "启用",
      "disable": "禁用"
    },
    "deleteConfirm": "确定要删除端点 \"{id}\" 吗？",
    "emptyState": {
      "title": "未找到端点",
      "message": "添加端点以配置自定义 API 映射。"
    },
    "endpointId": "端点 ID",
    "endpointIdHint": "唯一的 CLI 标识符（例如：my-gpt4o）",
    "name": "名称",
    "provider": "提供商",
    "model": "模型",
    "noModelsConfigured": "此提供商未配置模型",
    "selectModel": "选择模型...",
    "cacheStrategy": "缓存策略",
    "enableContextCaching": "启用上下文缓存",
    "cacheTTL": "缓存 TTL（分钟）",
    "cacheMaxSize": "最大大小（KB）",
    "filePatterns": "模式数",
    "autoCachePatterns": "自动缓存模式",
    "filePatternsHint": "逗号分隔的 glob 模式（例如：*.md,*.ts）",
    "enabled": "已启用",
    "disabled": "已禁用",
    "noEndpoints": "未配置端点",
    "noEndpointsHint": "添加端点以创建带有缓存的自定义 API 映射。",
    "providerBased": "基于提供商",
    "direct": "直接",
    "off": "关闭",
    "showDisabled": "显示已禁用",
    "showAll": "显示全部",
    "basicInfo": "基本信息",
    "saveError": "保存端点失败",
    "deleteError": "删除端点失败",
    "toggleError": "切换端点状态失败"
  },
  "cache": {
    "title": "缓存",
    "description": "管理全局缓存设置和查看缓存统计信息",
    "settings": {
      "title": "缓存设置",
      "globalCache": "全局缓存",
      "enableGlobalCaching": "启用全局缓存",
      "cacheDirectory": "缓存目录",
      "maxSize": "最大总大小（MB）",
      "cacheUsage": "缓存使用",
      "cacheEntries": "缓存条目",
      "cacheSize": "缓存大小",
      "used": "已使用",
      "total": "总计",
      "actions": {
        "clearCache": "清除缓存"
      },
      "confirmClearCache": "确定要清除缓存吗？这将删除所有缓存条目。"
    },
    "statistics": {
      "title": "缓存统计",
      "cachedEntries": "已缓存条目",
      "storageUsed": "已用存储",
      "totalSize": "总大小"
    },
    "actions": {
      "clear": "清除缓存",
      "confirmClear": "确定要清除缓存吗？"
    },
    "messages": {
      "cacheCleared": "缓存已清除",
      "cacheSettingsUpdated": "缓存设置已更新"
    }
  },
  "modelPools": {
    "title": "模型池",
    "description": "配置模型池以实现高可用性和负载均衡",
    "stats": {
      "total": "总池数",
      "enabled": "已启用"
    },
    "actions": {
      "add": "添加模型池",
      "edit": "编辑模型池",
      "delete": "删除模型池",
      "autoDiscover": "自动发现"
    },
    "deleteConfirm": "确定要删除模型池 \"{name}\" 吗？",
    "emptyState": {
      "title": "未找到模型池",
      "message": "添加模型池以启用高可用性和负载均衡。"
    },
    "modelType": "模型类型",
    "embedding": "嵌入",
    "llm": "LLM",
    "reranker": "重排序",
    "targetModel": "目标模型",
    "selectTargetModel": "选择目标模型...",
    "strategy": "策略",
    "roundRobin": "轮询",
    "latencyAware": "延迟感知",
    "weightedRandom": "加权随机",
    "poolEnabled": "池已启用",
    "autoDiscover": "自动发现提供商",
    "excludedProviders": "排除的提供商",
    "defaultCooldown": "默认冷却时间（秒）",
    "defaultConcurrent": "默认并发数",
    "discoveredProviders": "已发现的提供商",
    "excludeProvider": "排除",
    "includeProvider": "包含",
    "noProvidersFound": "未找到提供此模型的提供商",
    "poolSaved": "模型池已保存",
    "embeddingPoolDesc": "配置模型池以实现跨多个提供商的高可用性和负载均衡",
    "embeddingPool": "嵌入池",
    "discovered": "已发现",
    "providers": "提供商"
  },
  "cliSettings": {
    "title": "CLI 设置",
    "description": "配置 CLI 工具设置和模式",
    "modalDescription": "为不同的端点配置 Claude CLI 包装器设置",
    "stats": {
      "total": "总设置数",
      "enabled": "已启用"
    },
    "actions": {
      "add": "添加 CLI 设置",
      "edit": "编辑 CLI 设置",
      "delete": "删除 CLI 设置"
    },
    "deleteConfirm": "确定要删除 CLI 设置 \"{name}\" 吗？",
    "emptyState": {
      "title": "未找到 CLI 设置",
      "message": "添加 CLI 设置以配置工具特定选项。"
    },
    "searchPlaceholder": "按名称或描述搜索...",
    "mode": "模式",
    "providerBased": "基于提供商",
    "direct": "直接",
    "authToken": "认证令牌",
    "baseUrl": "基础 URL",
    "model": "模型",
    "namePlaceholder": "例如：production-claude",
    "descriptionPlaceholder": "此配置的可选描述",
    "selectProvider": "选择提供商",
    "includeCoAuthoredBy": "在提交中包含 co-authored-by",
    "coAuthoredBy": "共同创作",
    "availableModels": "可用模型",
    "availableModelsPlaceholder": "输入模型名称并按回车",
    "availableModelsHint": "显示在 CLI 下拉菜单中的模型。点击 × 删除。",
    "nameFormatHint": "仅限字母、数字、连字符和下划线。用作：ccw cli --tool [名称]",
    "nameTooLong": "名称必须在 {max} 个字符以内",
    "configJson": "配置（JSON）",
    "configJsonPlaceholder": "{\n  \"env\": {\n    \"CUSTOM_VAR\": \"value\"\n  }\n}",
    "configJsonHint": "JSON 格式的额外配置。将与上述表单字段合并。",
    "invalidJson": "无效的 JSON",
    "configMustBeObject": "配置必须是一个 JSON 对象",
    "settingsFile": "配置文件路径",
    "settingsFilePlaceholder": "例如：/path/to/settings.json",
    "settingsFileHint": "外部 Claude CLI 配置文件路径（通过 --settings 参数传递）",
    "tags": "标签",
    "tagsDescription": "CLI 工具路由和自动选择标签（例如：分析、Debug）",
    "addTag": "添加标签",
    "tagInputPlaceholder": "输入标签...",
    "predefinedTags": "常用标签",
    "removeTag": "删除标签",
    "noTags": "未添加标签",
    "validation": {
      "providerRequired": "请选择提供商",
      "authOrBaseUrlRequired": "请输入认证令牌或基础 URL"
    },
    "saveError": "保存 CLI 设置失败",
    "deleteError": "删除 CLI 设置失败",
    "toggleError": "切换 CLI 设置状态失败"
  },
  "ccwLitellm": {
    "title": "CCW-LiteLLM 包",
    "description": "管理 ccw-litellm Python 包安装",
    "systemPythonMismatch": "检测到 ccw-litellm 已安装在系统 Python 中，但未安装到 CodexLens 虚拟环境（~/.codexlens/venv）里，所以这里显示未安装。点击“安装”即可安装到虚拟环境中。",
    "status": {
      "installed": "已安装",
      "notInstalled": "未安装",
      "version": "版本"
    },
    "actions": {
      "install": "安装",
      "uninstall": "卸载",
      "refreshStatus": "刷新状态"
    },
    "messages": {
      "installSuccess": "ccw-litellm 安装成功",
      "installFailed": "ccw-litellm 安装失败",
      "uninstallSuccess": "ccw-litellm 卸载成功",
      "uninstallFailed": "ccw-litellm 卸载失败"
    },
    "install": {
      "title": "安装 CCW-LiteLLM",
      "description": "将 ccw-litellm 安装到 CodexLens Python 虚拟环境中以支持嵌入功能。",
      "checklist": "将要安装的内容",
      "codexlensVenv": "CodexLens 虚拟环境",
      "codexlensVenvDesc": "确保 CodexLens Python 虚拟环境就绪",
      "litellmPackage": "ccw-litellm 包",
      "litellmPackageDesc": "基于 LiteLLM 的嵌入客户端，支持多提供商",
      "embeddingSupport": "嵌入支持",
      "embeddingSupportDesc": "启用 LiteLLM 嵌入后端用于语义搜索",
      "location": "安装位置",
      "locationPath": "~/.codexlens/venv",
      "timeEstimate": "安装可能需要 1-3 分钟，取决于网络速度。",
      "installNow": "立即安装",
      "installing": "安装中...",
      "stage": {
        "checkingVenv": "正在检查 CodexLens 虚拟环境...",
        "detectingPackage": "正在检测 ccw-litellm 包来源...",
        "installingDeps": "正在安装依赖项...",
        "installingPackage": "正在安装 ccw-litellm 包...",
        "verifying": "正在验证安装...",
        "complete": "安装完成！"
      }
    }
  },
  "common": {
    "save": "保存",
    "cancel": "取消",
    "confirm": "确认",
    "delete": "删除",
    "edit": "编辑",
    "add": "添加",
    "close": "关闭",
    "loading": "加载中...",
    "saving": "保存中...",
    "error": "错误",
    "success": "成功",
    "warning": "警告",
    "optional": "可选",
    "enabled": "已启用",
    "disabled": "已禁用",
    "searchPlaceholder": "搜索...",
    "noResults": "未找到结果",
    "actions": "操作",
    "name": "名称",
    "description": "描述",
    "type": "类型",
    "status": "状态",
    "provider": "提供商",
    "enableThis": "启用此",
    "showAll": "显示全部",
    "validation": {
      "nameRequired": "名称为必填项"
    }
  },
  "messages": {
    "settingsSaved": "设置保存成功",
    "settingsDeleted": "设置删除成功",
    "providerSaved": "提供商保存成功",
    "providerDeleted": "提供商删除成功",
    "providerUpdated": "提供商更新成功",
    "endpointSaved": "端点保存成功",
    "endpointDeleted": "端点删除成功",
    "confirmDeleteProvider": "确定要删除此提供商吗？",
    "confirmDeleteEndpoint": "确定要删除此端点吗？",
    "confirmClearCache": "确定要清除缓存吗？",
    "invalidJsonHeaders": "自定义请求头的 JSON 格式无效",
    "failedToLoad": "加载数据失败",
    "noProviders": "无提供商",
    "noProvidersHint": "添加提供商以开始配置 API。",
    "noEndpoints": "无端点",
    "noEndpointsHint": "添加端点以创建自定义 API 映射。",
    "configSynced": "配置已同步到 YAML 文件"
  }
}
