Repository navigation
[插件分享] dsh-plugin-dit:一条命令接入 DIT,29 个 Chat 模型 + 10 个 Messages 模型 #2605
MC-shark
started this conversation in
Show Your Plugins!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
这个插件解决的不是“能不能手动填一个 OpenAI-compatible 地址”,而是把 DIT 的模型目录、双协议和 thinking 配置做成一个可版本化、可重复安装的 DeepSeek Harness bundle。
源码已迁移到独立公开仓库:cuboteam/dsh-plugin-dit。用户无需访问 DIT 私有主仓库即可审查插件、提交 Issue 或参与开发。
看三个点:
/v1/chat/completions)与 Anthropic Messages(/v1/messages)。DIT_API_KEY,不会把密钥写进 npm 包或 Git 仓库。适合已经在用 DSH、但不想逐个维护模型 ID、协议和 thinking 参数的开发者。
安装
打开 Settings → Models 后会看到两个 Provider:
DIT.ai:29 个声明支持openai_chat_completions的模型。DIT.ai Messages:10 个声明支持anthropic_messages的 Claude 模型。Headless profile 也可以直接安装:
为什么分成两个 Provider
同一个模型名不等于同一种 wire protocol。
Chat provider 发送标准 OpenAI Chat Completions 请求;Messages provider 则保留 Anthropic content blocks、tool use、流式事件和 thinking budget。DeepSeek V4 只出现在 Chat provider,并使用对应的 thinking 方言,不会被错误地发到
/v1/messages。验证情况
dsh-plugin-dit@0.1.3/v1/models对比:29 个 Chat、10 个 Messages,ID 完全一致。这里有一个明确边界:图像、音频和视频模型没有伪装成对话模型放进选择器,因为 DSH 这条 Provider 路径消费的是 conversational model API。DIT 新增或调整对话模型后,仓库里的 catalog check 会在发版前检查目录漂移。
如果你在使用中遇到模型、协议或安装问题,欢迎在公开仓库提交 Issue。
English summary
dsh-plugin-ditis an installable DeepSeek Harness provider bundle for DIT.ai. Version 0.1.3 configures 29 OpenAI Chat Completions models and 10 Anthropic Messages models behind oneDIT_API_KEY, while keeping protocol-specific thinking behavior separate.Install:
Public repository: https://github.com/cuboteam/dsh-plugin-dit
All reactions