Chuyển đến nội dung chính

dsh-mimo-plugin

Đã xác minh

@yyfather/dsh-mimo-plugin · v1.0.2 · MIT · Giao diện web

MiMo (Xiaomi) tools as a DSH profile plugin: web search, image/audio/video understanding, ASR transcription, TTS, voice design and voice cloning — native agent tools with a Settings page for the API key.

Cài đặt

dsh plugin add @yyfather/dsh-mimo-plugin

Xác nhận layer đã áp bằng dsh --profile default --dump-config — xem hướng dẫn cài plugin.

Mã nguồn

Thẻ

Readme

@yyfather/dsh-mimo-plugin

小米 MiMo 能力封装为 DSH profile 插件:8 个原生 Agent 工具(联网搜索 / 图片·音频·视频理解 / 专用 ASR 转写 / 语音合成 / 音色设计 / 音色克隆)+ 设置页(首次填写 API Key 并保存)+ 使用规则自动注入系统提示词。

安装(本地)

从 npm(发布后):

dsh plugin --profile desktop add @yyfather/dsh-mimo-plugin

或本地路径:

dsh plugin --profile desktop add "file:E:/studywork/DSHwork/plugins/mimo/pkg/dsh-mimo-plugin"

(或从 GitHub 安装:dsh plugin --profile desktop add github:YYfather/dsh-mimo-plugin

dsh.bundle.patch 的包安装后自动挂载,无需手改 profile 补丁。重启 DSH Desktop 后生效;之后在 设置 → MiMo 填写 Key(或设置环境变量 XIAOMI_API_KEY)。

配置

  • 配置文件:~/.dsh/mimo-config.json(DSH_HOME 下,apiKey 明文只存本机)
  • 环境变量 XIAOMI_API_KEY 可作为密钥后备(未写入文件时生效)
  • 默认输出目录:<工作区根目录>/MiMo-Generate(TTS / 音色设计 / 音色克隆生成的音频全部写入该子文件夹,自动创建;outputDir 留空即使用默认)
  • 相对路径(媒体参数 / output_dir)以工作区根目录为基准

结构

  • lib/index.js — host:ctx.tools.register 注册 8 工具(原生 fetch 调 OpenAI 兼容 API,音频写盘),webServer 提供 /mimo-config/status/mimo-config/savesystemPrompt.section 注入使用规则
  • lib/client.js — 浏览器端 __ModuleLoader__ bundle:设置 → MiMo 页面
  • cordis.patch.yml — 本包作为 bundle 时的挂载补丁