dsh-relay-fast
中文
面向 DeepSeek Harness(DSH)Desktop/Web 的中转站增强插件。
功能
- 思考等级自动补全:为
llm-pi-ai新增模型补上reasoningEfforts;兼容openai-completions与anthropic-messages,不覆盖已有声明。 - 模型同步:在设置页从中转站
/models同步缺失模型。 - 动态 Fast 开关:仅在端点明确声明 Fast,或用户通过
fastModels显式启用时显示;开启后发送service_tier: "priority"。
安装
dsh plugin --profile desktop add github:Rock-ql/dsh-relay-fast
安装后重启 DSH Desktop。Web profile 可将 desktop 替换为对应 profile 名称。
可选配置
在 profile 的 cordis.patch.yml 中覆盖插件配置:
- id: relay-fast
config:
autofill: true
fastTier: priority
fastModels:
- gpt-5* # 所有中转渠道的 GPT-5 模型
defaultSpeed: fast # 新会话默认 Fast;仍可手动切回 Standard
不配置 fastModels 时,插件只相信中转站 /models 返回的明确 Fast 能力元数据,不按模型名称猜测。
注意:开关能保证发送
service_tier: priority,但中转站可能忽略该字段。真实加速能力取决于上游。测试记录见 docs。
开发
pnpm install
pnpm check
English
A relay enhancement plugin for DeepSeek Harness (DSH) Desktop/Web.
Features
- Reasoning-effort autofill: adds missing
reasoningEffortsto newllm-pi-aimodels. It is protocol-aware foropenai-completionsandanthropic-messages, and never overwrites existing declarations. - Model sync: imports missing models from a relay's
/modelsendpoint in Settings. - Dynamic Fast toggle: appears only when the endpoint explicitly advertises Fast, or when enabled through
fastModels. Fast requests sendservice_tier: "priority".
Install
dsh plugin --profile desktop add github:Rock-ql/dsh-relay-fast
Restart DSH Desktop after installation. For Web, replace desktop with the target profile name.
Optional configuration
Override the plugin in the profile's cordis.patch.yml:
- id: relay-fast
config:
autofill: true
fastTier: priority
fastModels:
- gpt-5* # GPT-5 models on every relay route
defaultSpeed: fast # Fast by default; users can switch to Standard
Without fastModels, the plugin trusts only explicit Fast metadata returned by /models; it never guesses from model names.
The toggle guarantees that
service_tier: priorityis sent, but a relay may ignore it. Actual acceleration depends on the upstream service. See docs for test reports.
Development
pnpm install
pnpm check
No comments yet. Be the first to write one.