dsh-lmstudio-router
Agent 与会话 活跃维护

dsh-lmstudio-router

xiaoyizhuang03-droid/dsh-lmstudio-router

支持为dsh Web界面路由高耗token批量任务,可将文本处理、上下文压缩、会话标题生成等需求自动转发至本地LM Studio,依托其OpenAI兼容接口完成推理,无需额外复杂配置即可对接使用。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
20 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:xiaoyizhuang03-droid/dsh-lmstudio-router
git clone https://github.com/xiaoyizhuang03-droid/dsh-lmstudio-router.git
git clone git@github.com:xiaoyizhuang03-droid/dsh-lmstudio-router.git
README.md master

dsh-lmstudio-router

Local LM Studio model router for the dsh web GUI. Routes unimportant but
token-expensive requests (bulk text work, compaction, session titles) to a
local LM Studio model over its OpenAI-compatible /v1 endpoint, auto-launches
LM Studio when it is not running, and fits every local request into the
model's context window (default 8192). Dependency-free host plugin.

See README.zh.md for the full Chinese documentation.

Install

dsh plugin --profile web add link:<path-to-this-package>

Then add a config override in ~/.dsh/profiles/web/cordis.patch.yml:

- id: lmstudio-router
  name: 'dsh-lmstudio-router'
  config:
    baseUrl: http://127.0.0.1:1234/v1
    model: qwen3.59b
    contextWindow: 8192
    autoLaunch: true

Restart dsh web. Force routing with [local] / [remote] (or local: /
remote:) at the start of a user message.

Test

node scripts/selftest.mjs

License

MIT