mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 12:24:39 +00:00
feat(provider): optimize provider and model configuration management (#377)
* feat(provider): optimize provider and model configuration management * style(provider): use default tabs variant in provider settings dialog * style(provider): make tabs list full width * feat(provider): make model card row clickable and remove pencil edit icon * feat(settings): persist active settings tab in url hash * feat(agent): add search box and alphabetical sorting for provider and model selectors * refactor(providers): remove frontend pagination and display all models in scrollable list * fix(providers): address code review findings for model editing, i18n, and api protocol propagation
This commit is contained in:
@@ -312,6 +312,7 @@
|
||||
"configured_ai_providers": "Configured AI Providers",
|
||||
"add_provider": "Add Provider",
|
||||
"search_providers_placeholder": "Search providers...",
|
||||
"no_providers_found": "No providers found",
|
||||
"built_in": "Built-in",
|
||||
"models_count": "Models",
|
||||
"n_models_count": "{count} Models",
|
||||
@@ -340,6 +341,20 @@
|
||||
"api_key_description": "You can provide a literal value (e.g. sk-...) or an Environment variable name (e.g. MY_API_KEY).",
|
||||
"models_configuration": "Models Configuration",
|
||||
"add_model": "Add Model",
|
||||
"edit_model": "Edit Model",
|
||||
"delete_model": "Delete Model",
|
||||
"delete_model_confirmation": "This action cannot be undone. This will permanently delete the model \"{name}\".",
|
||||
"model_created_successfully": "Model created successfully",
|
||||
"model_updated_successfully": "Model updated successfully",
|
||||
"model_deleted_successfully": "Model deleted successfully",
|
||||
"models": "Models",
|
||||
"search_models_placeholder": "Search models by ID or name...",
|
||||
"no_models_found": "No models found",
|
||||
"page_info": "Page {current} of {total}",
|
||||
"previous": "Previous",
|
||||
"next": "Next",
|
||||
"pricing": "Pricing ($ per 1M tokens)",
|
||||
"parameters": "Parameters",
|
||||
"model_id": "Model ID",
|
||||
"display_name_optional": "Display Name (Optional)",
|
||||
"reasoning_support": "Reasoning Support",
|
||||
@@ -347,8 +362,16 @@
|
||||
"max_output_tokens": "Max Output Tokens",
|
||||
"input_cost_1m": "Input Cost (1M)",
|
||||
"output_cost_1m": "Output Cost (1M)",
|
||||
"tokens": "tokens",
|
||||
"cache_read_cost_1m": "Cache Read Cost (1M)",
|
||||
"cache_write_cost_1m": "Cache Write Cost (1M)",
|
||||
"save_configuration": "Save Configuration",
|
||||
"at_least_one_model_required": "At least one model is required",
|
||||
"model_id_already_exists": "Model ID already exists for this provider",
|
||||
"model_id_placeholder": "e.g., gpt-4o, claude-3-5-sonnet-20241022",
|
||||
"model_name_placeholder": "e.g., GPT-4o",
|
||||
"cost_per_million": "${input}/1M in · ${output}/1M out",
|
||||
"max_tokens_label": "max {count}",
|
||||
"provider": "Provider",
|
||||
"model": "Model",
|
||||
"select_provider": "Select Provider",
|
||||
|
||||
@@ -312,6 +312,7 @@
|
||||
"configured_ai_providers": "已配置的 AI 提供商",
|
||||
"add_provider": "添加提供商",
|
||||
"search_providers_placeholder": "搜索提供商...",
|
||||
"no_providers_found": "未找到提供商",
|
||||
"built_in": "内置",
|
||||
"models_count": "模型",
|
||||
"n_models_count": "{count} 个模型",
|
||||
@@ -340,6 +341,20 @@
|
||||
"api_key_description": "您可以提供一个字面值(例如 sk-...)或环境变量名称(例如 MY_API_KEY)。",
|
||||
"models_configuration": "模型配置",
|
||||
"add_model": "添加模型",
|
||||
"edit_model": "编辑模型",
|
||||
"delete_model": "删除模型",
|
||||
"delete_model_confirmation": "此操作无法撤销。这将永久删除模型 \"{name}\"。",
|
||||
"model_created_successfully": "模型创建成功",
|
||||
"model_updated_successfully": "模型更新成功",
|
||||
"model_deleted_successfully": "模型删除成功",
|
||||
"models": "模型列表",
|
||||
"search_models_placeholder": "按 ID 或名称搜索模型...",
|
||||
"no_models_found": "未找到模型",
|
||||
"page_info": "第 {current} 页,共 {total} 页",
|
||||
"previous": "上一页",
|
||||
"next": "下一页",
|
||||
"pricing": "计费(每百万令牌美元)",
|
||||
"parameters": "参数",
|
||||
"model_id": "模型 ID",
|
||||
"display_name_optional": "显示名称(可选)",
|
||||
"reasoning_support": "推理支持",
|
||||
@@ -347,8 +362,16 @@
|
||||
"max_output_tokens": "最大输出令牌数",
|
||||
"input_cost_1m": "输入成本(每百万)",
|
||||
"output_cost_1m": "输出成本(每百万)",
|
||||
"tokens": "令牌",
|
||||
"cache_read_cost_1m": "缓存读取成本(每百万)",
|
||||
"cache_write_cost_1m": "缓存写入成本(每百万)",
|
||||
"save_configuration": "保存配置",
|
||||
"at_least_one_model_required": "至少需要一个模型",
|
||||
"model_id_already_exists": "此提供商已存在该模型 ID",
|
||||
"model_id_placeholder": "例如:gpt-4o, claude-3-5-sonnet-20241022",
|
||||
"model_name_placeholder": "例如:GPT-4o",
|
||||
"cost_per_million": "${input}/1M 输入 · ${output}/1M 输出",
|
||||
"max_tokens_label": "最大 {count}",
|
||||
"provider": "提供商",
|
||||
"model": "模型",
|
||||
"select_provider": "选择提供商",
|
||||
|
||||
Reference in New Issue
Block a user