前言¶
DeepSeek Harness (DSH) 的 LLM Seam 插件生态允许开发者扩展模型支持。dsh-llm-mimo 是 Xiaomi MiMo v2.5 的适配器,解决了原版 fork 中存在的 HTTP 400 INVALID_REQUEST 错误,并适配了新版 dsh-llm 依赖。
核心功能¶
- Thinking chain support: 正确识别 MiMo 的
reasoning_content字段并转换为 harness 的ReasoningBlock格式。 - Multi-turn conversations: 在工具调用轮次中保留 assistant 消息的
reasoning_content,符合 MiMo 要求。 - Tool calling: 将工具结果序列化为 OpenAI 兼容的
role: 'tool'消息,文本为空时发送""。 - OpenAI-compatible API: 使用 MiMo 的 OpenAI 兼容聊天补全端点。
- Full SSE streaming support: 支持完整的 Server-Sent Events 流式传输及块组装。
安装与启用¶
插件声明了 dsh.bundle manifest,推荐通过命令行一步安装。
dsh plugin --profile web add github:dfhxxc666/dsh-llm-mimo --config.minimum-release-age=0
安装完成后,在 GUI 模型选择器中选择 Xiaomi MiMo → MiMo-V2.5-Pro 即可使用。
配置说明¶
- API Key: 需在
~/.dsh/.credentials.yaml中配置MIMO_API_KEY。 - 模型: 支持模型为
mimo-v2.5-pro或mimo-v2.5。 - 依赖: 依赖项
@deepseek-ai/dsh-llm版本需为^0.1.1-rc.2或更高。
注意事项¶
- 非 bundle 类型: 插件非 bundle 类型,若手动安装需在
cordis.patch.yml中插入llm-mimo块。 - 手动重启: 安装后需要通过
restart-dsh.ps1手动重启 DSH 进程以生效。 - 版本依赖: 确保
@deepseek-ai/dsh-llm版本为^0.1.1-rc.2,否则可能报错。