Skip to content

Commit 8a314ff

Browse files
committed
Merge PR #232 fallback model UI optimization
2 parents 102bebc + 9afe6ee commit 8a314ff

6 files changed

Lines changed: 349 additions & 71 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ docs/promo-video.mp4
6464
# Rust 开发工具
6565
src-tauri/.cargo/
6666
.codex/
67+
68+
# Tauri 生成的 schema 文件(Linux 平台特定)
69+
src-tauri/gen/schemas/linux-schema.json
6770
# AI 上下文记忆
6871
.context.md
6972
CONTEXT_STATE.md

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- **Hermes 记忆编辑体验** — 记忆文件编辑改为大尺寸模态框,避免长内容被卡片区域限制
2222
- **日志下载反馈** — 桌面端日志下载保存到系统 `Downloads/ClawPanel` 并显示真实路径;Web 端继续浏览器下载并明确提示查看默认下载目录
2323
- **侧边栏导航补全** — 补齐 Hermes 会话浏览、扩展与主题等导航项图标与文案
24+
- **模型备选管理 UI** — 合并 PR #232,将主/备模型面板改为可折叠瀑布流编辑器,支持候选池分组、拖拽排序和备选提升为主模型
2425

2526
### 修复 (Fixes)
2627

src/locales/en.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
"qtcoolCheckinPage": "check-in page",
333333
"qtcoolCheckinHint": "for free daily credits, copy your Key from",
334334
"qtcoolDashboard": "dashboard",
335-
"qtcoolCopyKey": "",
335+
"qtcoolCopyKey": "Copy your Key",
336336
"qtcoolSelectTitle": "Select models to add",
337337
"qtcoolSelectHint": "Fetched {count} available models from QingChen Cloud. Select and add.",
338338
"qtcoolKeyLabel": "API Key",
@@ -464,7 +464,8 @@
464464
"restartOk": "Gateway restarted",
465465
"restartFailed": "Restart failed",
466466
"configSavedGwFailed": "Config saved, but Gateway restart failed",
467-
"visitSite": "Visit {name} website"
467+
"visitSite": "Visit {name} website",
468+
"configure": "Configure"
468469
},
469470
"agents": {
470471
"title": "Agents",

src/locales/modules/models.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,4 +157,16 @@ export default {
157157
restartFailed: _('重启失败', 'Restart failed', '重啟失敗'),
158158
configSavedGwFailed: _('配置已保存,但 Gateway 重启失败', 'Config saved, but Gateway restart failed', '設定已儲存,但 Gateway 重啟失敗'),
159159
visitSite: _('访问 {name}官网', 'Visit {name} website', '訪問 {name}官網'),
160+
// 瀑布流编辑器新增 keys
161+
systemModelTitle: _('系统主/备模型', 'System Primary/Backup Models', '系統主/備模型'),
162+
activeChainTitle: _('当前生效链 (支持拖拽排序)', 'Active Chain (drag to reorder)', '目前生效鏈 (支援拖曳排序)'),
163+
candidatePoolTitle: _('可用候选池 (按服务商分组)', 'Candidate Pool (grouped by provider)', '可用候選池 (按服務商分組)'),
164+
noCandidateModel: _('无可用候选模型', 'No candidate models available', '無可用候選模型'),
165+
bestPracticeHint: _('💡 最佳实践:建议备选模型保持在 2-3 款并分布在不同服务商,以平衡可用性与延迟。', '💡 Best practice: Keep 2-3 fallback models distributed across different providers to balance availability and latency.', '💡 最佳實踐:建議備選模型保持在 2-3 款並分布在不同服務商,以平衡可用性與延遲。'),
166+
setAsPrimarySuccess: _('已将 {model} 设为主模型', 'Set {model} as primary model', '已將 {model} 設為主模型'),
167+
noFallbackSelected: _('尚未选择备选模型', 'No fallback models selected', '尚未選擇備選模型'),
168+
nFallbacks: _('{count} 个备选', '{count} fallback(s)', '{count} 個備選'),
169+
setAsPrimary: _('设为主用', 'Set as Primary', '設為主用'),
170+
remove: _('移除', 'Remove', '移除'),
171+
add: _('加入', 'Add', '加入'),
160172
}

src/locales/zh-CN.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,7 @@
436436
"fallbackModels": "备选模型:",
437437
"fallbackNone": "",
438438
"fallbackHint": "主模型不可用时,系统会自动切换到备选模型",
439+
"configure": "配置",
439440
"primaryAutoSwitch": "主模型已自动切换为 {model}",
440441
"noProvider": "暂无服务商,点击「+ 添加服务商」开始配置",
441442
"noModel": "暂无模型,点击「+ 模型」添加",

0 commit comments

Comments
 (0)