dsh-llm-proxy
按模型给 LLM 请求分流代理:勾选的模型走代理(Clash 等),其余直连;传输错误、429、5xx 自动重试,设置页实时生效。
Per-model proxy routing for LLM requests: selected models go through a proxy (Clash etc.) while the rest stay direct, with automatic retry on transport errors, 429 and 5xx, configured live from the settings page.
怎么安装
dsh plugin add @superfish058/dsh-llm-proxy 简介
@superfish058/dsh-llm-proxy DSH 模型代理插件:给 LLM 请求按「目标域名」分流——选中的模型走代理,其余直连,失败自动重试。 它是干嘛的 **按模型走代理**:在 DSH 设置页(插件 → 可配置插件 → 模型代理)勾选需要走代理的模型(如 deepseek-v4-flash),该模型的请求自动经 proxyHost:proxyPort(默认 127.0.0.1:7897,即 Clash)转发;未勾选的模型(DeepSeek、小米、通义等国内 API)保持直连。 **失败自动重试**:对断连(ECONNRESET 等)、HTTP 429 限流、5xx 错误自动重试(默认 3 次、间隔 1s),减少免费额度被瞬时错误打断。 **模型列表与官方一致(v1.0.3)**:只配了 apiKeyEnv、没写 models 的 provider(如 xiaomi),其模型从 pi-ai 内置目录(@earendil-works/pi-ai)回退补齐,勾选列表与 DSH 官方模型选择器完全同步;目录更新(npm update 后)自动跟随,无需手改配置。 **retryPolicy 镜像(v1.0.3)**:卡片上的 retries/retryIntervalMs 会镜像进被勾选 provider 的官方 retryPolicy(驱动设置页可见的 (retry/…
推荐参考
信息
- 协议
- MIT
- 语言
- JavaScript
- GitHub 星标
- 5
- 月下载
- 1.7K
- 最近更新
- 2026-09-16
- 创建于
- 2026-08-18
基础安全检查
- 检查结果
- 无
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- 主题标签
- deepseek-harness, dsh, dsh-plugin, llm-proxy
同类推荐
dsh-plugin-subscriptions
V1ki/dsh-plugin-subscriptions
把 ChatGPT(Codex)、Claude、Grok 订阅当作 DeepSeek Harness 的 LLM 提供方:设置页登录、模型目录、用量展示,以及 image_generate、video_generate 与 x_search 工具。
dsh-workbuddy-connect
corrinehu/dsh-workbuddy-connect
将 WorkBuddy 桌面 App 包含的模型自动接入 DeepSeek Harness,在 DSH 对话窗口里零配置使用。
claude-code-router
musistudio/claude-code-router
每个AI代理的本地控制平面:跨模型路由、融合新能力、编排工具,并始终保持完全控制。
dsh-thinking-effort
hytime/dsh-thinking-effort
为 DSH 自定义模型配置思考档位和子 agent 默认思考强度。