模型保持占用(held)机制:回合结束不再立即释放模型,进入 held 租约(config.model_hold 可配:idle_release_ms 默认3分钟——页面无人观看即释放;active_max_ms 默认30分钟——有人观看的保持上限;sweep_ms 巡检间隔);held 期间追问直接复用已绑模型免排队(delivered=live);sessions 表迁移新增 held_at 列;sse 增加 clientCount 判定观看者;前端新增保持中状态标签/徽章色,终止入口扩展至 held(主动放弃占用);smoke/README/示例配置同步更新

This commit is contained in:
2026-08-31 15:26:44 +08:00
parent 73041e6a9e
commit 5214f84612
11 changed files with 117 additions and 32 deletions
+1
View File
@@ -74,6 +74,7 @@ body {
.badge.active { background: #e3f2e6; color: #217a34; }
.badge.queued { background: #fff4dc; color: #a06a00; }
.badge.completed { background: #eceff5; color: #5c6674; }
.badge.held { background: #efeafc; color: #6b46c8; }
.badge.cancelled { background: #fdecea; color: #b3382c; }
.session-del { color: #c33; background: none; border: none; font-size: 12px; padding: 6px; }