dsh-provider-auto
by icekale
自动添加推理级控制至兼容DeepSeek Harness提供者模型
Automatically add reasoning-level controls to compatible DeepSeek Harness provider models
安装
dsh plugin --profile web add github:icekale/dsh-provider-autoGitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试
安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗
安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。
README
为 DeepSeek Harness 中兼容的自定义 provider 模型自动补充推理强度选项。
功能
@deepseek-ai/dsh-llm-pi-ai 只有在模型声明 reasoningEfforts 时才显示推理强度。多数 OpenAI 兼容网关的 /models 接口只返回模型 ID,不返回推理能力。该插件监听 llm-pi-ai 设置,为识别到的推理模型补充缺失的能力声明。
默认规则:
- 协议:
openai-completions、openai-responses - 模型:
gpt-5*、o1*、o3*、o4*、其他o<数字>*、codex* - 等级:
off、low、medium、high - 排除图片、音频、embedding、moderation、rerank 模型
- 不覆盖已有的
reasoningEfforts
插件写回 DSH 原生 llm-pi-ai 设置,因此模型选择器和请求发送仍由 DSH 原生实现负责。
安装
从 GitHub 安装到 Web profile:
dsh plugin --profile web add github:icekale/dsh-provider-auto
安装后重启一次 dsh web。之后通过模型页面新增 provider 或模型时会实时处理。
卸载:
dsh plugin --profile web remove dsh-provider-auto
Provider 配置
可以通过 DSH 的模型页面添加,也可以编辑 ~/.dsh/settings.yaml:
llm-pi-ai:
providers:
one2api:
baseURL: https://one2api.top/v1
api: openai-completions
apiKeyEnv: ONE2API_API_KEY
models:
- id: gpt-5.6-sol
name: gpt-5.6-sol
- id: gpt-image-2
name: gpt-image-2
插件只会给 gpt-5.6-sol 补充:
reasoningEfforts:
off: null
low: low
medium: medium
high: high
插件配置
当网关使用不同模型命名或参数值时,在 ~/.dsh/profiles/web/cordis.patch.yml 覆盖插件配置:
- id: provider-auto
config:
api:
- openai-completions
- openai-responses
modelPattern: '^(gpt-5|o[0-9]|codex|my-reasoner)'
nonTextPattern: '(image|audio|embedding|rerank)'
efforts:
off: null
low: low
medium: medium
high: high
如果 provider 接受不同的 wire value,可以显式映射:
- id: provider-auto
config:
efforts:
off: null
low: lite
medium: standard
high: max
限制
该插件不实现新的 provider 协议或认证方式,DSH 仍只能调用已安装适配器支持的协议。由于 OpenAI 兼容 /models 通常不返回推理等级,自动识别只能依据模型名称。特殊模型可以手动声明 reasoningEfforts,插件不会覆盖。
开发
npm test
要求 Node.js 22 或更高版本。
许可证
MIT
原始 README: https://github.com/icekale/dsh-provider-auto/blob/main/README.zh-CN.md ↗
同类插件
查看全部 →
agent-vision-toolkit
为纯文本模型"看图“设计更好的视觉工具箱和技能,支持多图理解,图片问答,前端UI还原、GUI 自动化等,并可选无缝接入多个主流agent,直接识别粘贴图片| A vision toolkit and skill designed for text-only llms — image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, with optional seamless integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode

api-relay-audit
从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。

OpenStory
✨ OpenStory 现已支持 DeepSeek Harness 插件! 现在可以通过 dsh-openstory 将 OpenStory 多智能体推演接入 DeepSeek Harness,让 agent 直接启动模拟、查看角色、下达指令并逐回合推进故事。查看 DSH 插件配置与使用指南。

phi
pi的编码代理 ∞ 提供者、子代理、hashline编辑和权限门

anysearch-dsh
DeepSeek Harness(DSH)的 AnySearch 网络搜索提供方与高级搜索工具。

codex-switch
Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes. For Codex, it keeps Official OpenAI and a custom API provider configured in parallel, registers the custom model in Codex's mod