mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 14:04:50 +00:00
feat(provider): add provider and model sync feature with vendored generator (#378)
* feat(provider): vendor and adapt pi model generator - Vendor generate-models.ts, model-data.ts, and models-dev-reasoning-options.ts from @earendil-works/pi tag v0.82.1 - Adapt imports to use @earendil-works/pi-ai and expose generateModels programmatic function - Add compare.test.ts to verify vendored generator against original built-in catalog - Add packages/core/src/provider/generator to eslint ignores * feat(provider): add provider and model sync api and ui * feat(webui): add checkbox for existing providers and clean dialog description * feat(webui): add expand all and collapse all to sync providers dialog * refactor(provider): remove compare.test.ts and cli overhead from generate-models * fix(provider): add 30s timeout and strict error handling to sync catalog fetching * fix(e2e): eliminate drag-and-drop race condition on webkit Allow requestAnimationFrame collision updates to settle in dragCard helper before releasing pointer, and scope fileCard locator via data-testid to avoid matching sidebar tree items.
This commit is contained in:
@@ -311,6 +311,25 @@
|
||||
"providers_description": "Configure AI providers and their models for this team.",
|
||||
"configured_ai_providers": "Configured AI Providers",
|
||||
"add_provider": "Add Provider",
|
||||
"sync_providers": "Sync Providers",
|
||||
"sync_providers_checking": "Checking for updates...",
|
||||
"sync_providers_dialog_title": "Sync Providers & Models",
|
||||
"sync_providers_dialog_description": "Select the new providers and models you want to add. Existing providers, custom endpoints, API keys, and model configurations will never be deleted or modified.",
|
||||
"sync_providers_up_to_date": "All providers and models are already up to date.",
|
||||
"sync_providers_select_all": "Select All",
|
||||
"sync_providers_deselect_all": "Deselect All",
|
||||
"sync_providers_expand_all": "Expand All",
|
||||
"sync_providers_collapse_all": "Collapse All",
|
||||
"sync_providers_search_placeholder": "Filter new providers or models...",
|
||||
"sync_providers_new_provider": "New Provider",
|
||||
"sync_providers_existing_provider": "Existing Provider",
|
||||
"sync_providers_new_models_count": "{count} new models",
|
||||
"sync_providers_selected_count": "{modelCount} models selected across {providerCount} providers",
|
||||
"sync_providers_reasoning": "reasoning",
|
||||
"sync_providers_context_window": "{count}k ctx",
|
||||
"sync_providers_add_selected": "Add Selected ({count})",
|
||||
"sync_providers_adding": "Adding...",
|
||||
"sync_providers_success": "Successfully added {modelCount} models across {providerCount} providers.",
|
||||
"search_providers_placeholder": "Search providers...",
|
||||
"no_providers_found": "No providers found",
|
||||
"built_in": "Built-in",
|
||||
|
||||
@@ -311,6 +311,25 @@
|
||||
"providers_description": "为此团队配置 AI 提供商及其模型。",
|
||||
"configured_ai_providers": "已配置的 AI 提供商",
|
||||
"add_provider": "添加提供商",
|
||||
"sync_providers": "同步提供商",
|
||||
"sync_providers_checking": "正在检查更新...",
|
||||
"sync_providers_dialog_title": "同步提供商与模型",
|
||||
"sync_providers_dialog_description": "选择您希望添加的新提供商和模型。现有的提供商、自定义端点、API 密钥和模型配置绝不会被删除或修改。",
|
||||
"sync_providers_up_to_date": "所有提供商和模型均已是最新状态。",
|
||||
"sync_providers_select_all": "全选",
|
||||
"sync_providers_deselect_all": "取消全选",
|
||||
"sync_providers_expand_all": "全部展开",
|
||||
"sync_providers_collapse_all": "全部折叠",
|
||||
"sync_providers_search_placeholder": "筛选新提供商或模型...",
|
||||
"sync_providers_new_provider": "新提供商",
|
||||
"sync_providers_existing_provider": "现有提供商",
|
||||
"sync_providers_new_models_count": "{count} 个新模型",
|
||||
"sync_providers_selected_count": "已选 {modelCount} 个模型,分布在 {providerCount} 个提供商中",
|
||||
"sync_providers_reasoning": "深度思考",
|
||||
"sync_providers_context_window": "{count}k 上下文",
|
||||
"sync_providers_add_selected": "添加所选 ({count})",
|
||||
"sync_providers_adding": "正在添加...",
|
||||
"sync_providers_success": "已成功添加 {providerCount} 个提供商中的 {modelCount} 个模型。",
|
||||
"search_providers_placeholder": "搜索提供商...",
|
||||
"no_providers_found": "未找到提供商",
|
||||
"built_in": "内置",
|
||||
|
||||
Reference in New Issue
Block a user