dsh plugins中文
← Back to popular plugin directory

Add header to ChatCompletions request for dsh

mc-lhz/dsh-add-headers-to-completions · tools

Add headers to dsh’s ChatCompletions request, which can be used to access OpenCode’s free v4-flash, hy3 and other models.

★ 0GitHub stars
0Forks
2026-08-16Last updated
JavaScriptLanguage
License

Project overview

前置:Node ≥ 20(install.mjs 无需 pnpm;dsh plugin 方式需要 pnpm)。

装完三步:重启 dsh web(主进程)→ 浏览器硬刷新(Ctrl+F5)→ 配置(见下)。 两个 harness 本地补丁必须先在目标机打上(见「harness 补丁」节),否则设置区块报「命名空间不可用」、UA 也无法覆盖。 配置 界面

设置 → 请求头 区块:三层编辑器(global / providers / models),改动即落盘。 YAML 直写(高级) 字段 · 类型 · 说明 字段: global · 类型: Record · 说明: 所有请求注入 字段: providers · 类型: Record > · 说明: 按 provider 路由注入 字段: models · 类型: Record > · 说明: 按模型注入(最细粒度) 字段: hosts · 类型: string[] · 说明: 目标主机后缀;空 = 除 .local 外全部(回环放行) 字段: fill · 类型: boolean · 说明: 默认 false(覆盖同名头);true 保留适配器头 卸载 / 清理

Install command

dsh plugin --profile web add github:mc-lhz/dsh-add-headers-to-completions
View GitHub repository ↗Back to popular plugin directory