前言¶
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,否則可能報錯。