Skip to content

Releases: tianji-qingtian/dsh-model-router

v0.8.1

Choose a tag to compare

@github-actions github-actions released this 14 Aug 08:06

Full Changelog: v0.8.0...v0.8.1

v0.8.0 — 快速回答前先问用户

Choose a tag to compare

@tianji-qingtian tianji-qingtian released this 14 Aug 07:17

新功能

auto 模式下,裁判判定为简单问题(SIMPLE)后不再直接回答,而是弹内置问题框让用户选择:

  • ⚡ 快速回答(flash):更快、成本更低
  • 主模型回答:更高质量、完整上下文

选主模型、关掉弹窗、子代理会话或没有问题 UI 时,自动回退正常流程。问题文案跟随提问语言(中/英)。

dsh plugin --profile web add "github:tianji-qingtian/dsh-model-router#v0.8.0"
dsh web

v0.7.2 — 关闭状态持久化

Choose a tag to compare

@tianji-qingtian tianji-qingtian released this 14 Aug 06:50

修复

点「关闭」后,重启 / 刷新界面时面板仍显示关闭,但行为回落成快速回答——因为关闭只写进了进程内存,重启即丢。

修复:agent/pre-step 在内存无覆盖时回落到投影的持久化 mode(由 command/run 事件折叠),关闭状态跨重启保持。

dsh plugin --profile web add "github:tianji-qingtian/dsh-model-router#v0.7.2"
dsh web

v0.7.1 — 修复 Auto/关闭 按钮

Choose a tag to compare

@tianji-qingtian tianji-qingtian released this 14 Aug 05:47

修复

面板的 Auto / 关闭 按钮点击无效——客户端用 ctx.get('remote') 裸查远程面,从未解析成功,错误还被吞掉。

修复:按官方插件范式在插件对象上硬注入 remote / remote.commands(goal 等官方插件同款写法),失败改为打日志。安装更新后重启即可正常切换。

dsh plugin --profile web add "github:tianji-qingtian/dsh-model-router#v0.7.1"
dsh web

v0.7.0 — Auto/off modes, zh+en i18n

Choose a tag to compare

@tianji-qingtian tianji-qingtian released this 14 Aug 04:37

首个稳定 release

模型路由与成本优化器,历经从「切换模型」到「直答」的架构收敛后成型。

核心能力

  • 便宜模型裁判路由:明显重活直走主模型;其余由零前缀 flash 裁判(SIMPLE/AGENTIC,带引用检测)判定
  • 直答式快速回答:简单问题由 flash 零前缀作答,直接写入会话日志,主模型零参与、不产生子会话/卡片/toast
  • Auto / 关闭 开关(面板 + /router auto|off + route_model 工具)
  • 瞬态故障自动降级、请求头漂移自动修复
  • 会话投影实时计量:token / 缓存命中 / 估算成本(分模型)
  • 中英双语 UI(locale 服务)与中文 README

修复的关键坑(详见 commit 历史)

  • DeepSeek TokenUsage 不相交计数(成本与命中率公式)
  • 什么是/是什么 中文语序漏判
  • flash thinking 吃掉裁判 token 预算
  • 伪造 header 污染持久化状态导致 resume 漂移
  • 裁判无视对话上下文导致追问零前缀乱答

安装

dsh plugin --profile web add "github:tianji-qingtian/dsh-model-router#v0.7.0"
dsh web

Harness 仍是 developer preview,后续升级可能需同步调整 peer 依赖与伪造 step 的兼容性。