QQQW114/dsh-model-proxy ↗★ 2

dsh-model-proxy

Route DeepSeek Harness model API requests through a local HTTP proxy, with local-port probing and a settings section. 适合需要配置本地代理和失败重试规则以稳定模型连接的用户。

Package
dsh-model-proxy
Compatibility
Unverified
Version
1.0.0
License
MIT
Last updated
Aug 17, 2026

Other repositories with this package name

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

使用

  1. 打开 DSH 设置,进入「模型请求 (Model)」——页面会自动探测预设端口。
  2. 在结果列表点某个端口的 使用(或手动填端口后点 应用)。
  3. 用顶部开关切换 启用/禁用:绿色「已启用」表示代理已生效,状态区会显示 已生效 · http://127.0.0.1:7890。
  4. 之后模型请求就会走这个代理;关闭开关即恢复直连。
  5. 在「重试规则」里填命中词汇(多个用逗号/换行分隔)和等待毫秒数,点 保存重试规则。之后一旦失败信息命中,就会按该间隔无限重试。

配置与持久化

运行期状态保存在包内 config.json(已加入 .gitignore):

{
  "enabled": true,
  "port": 7890,
  "type": "http",
  "retryKeywords": ["rate limit", "429", "timeout"],
  "retryDelayMs": 3000
}

host 插件启动时读取并应用它,因此重启 DSH 会自动恢复。禁用代理时写入 enabled: false 并恢复初始 dispatcher。