dsh-llm-multimodal: Integrating Six Types of Multimodal Generation Tools into DSH Chat

Introduction

In DeepSeek Harness (DSH), a common approach to building agents involves connecting to image APIs, video APIs, or TTS services separately, leading to scattered tools, duplicated model IDs, and disparate protocols. If you wish to route everything through an OpenAI-compatible gateway and automatically discover available models from the existing “Settings > Models” configuration, you can install the community plugin dsh-llm-multimodal (Maintainer: xiaokaizhou, Category: Model Inference). The following sections introduce what it is, how to install and configure it, daily usage, and how it integrates with the author’s companion plugins.

What is this?

dsh-llm-multimodal is a DSH plugin that provides six generation tools within chat: Text / Image / Video / Visual Understanding / Voice / Music. It is based on OpenAI-compatible APIs (except for generate_text, which uses the harness’s LlmRuntime). The npm package name is dsh-llm-multimodal. The version referenced in the current documentation is 0.2.0, licensed under MIT.

The six tool names are: generate_text, generate_image, generate_video, generate_vision, generate_tts, and generate_music. The plugin automatically determines tool availability based on whether the configured model IDs in llm-pi-ai contain keywords such as image, video, vision, tts, or music, eliminating the need for separate configurations for each tool.

Core Features

Model Discovery Rules

The corresponding tool becomes available when the model ID contains keywords such as image / flux / dall / imagen / sdxl, video / sora / seedance / kling, vision / qwen-vl / llava, tts / speech / voice, or music / song / lyric. For the specific keyword list, see the GitHub README.

Tool Capabilities (Verified Information)

Tool Protocol & Endpoint (Summary)
generate_text Uses harness ctx.llm.prepareCall for multi-protocol routing; model ID format is <provider>/<model>
generate_image OpenAI-compatible /images/generations; Adapted for DALL-E, Flux, Imagen, Midjourney, SDXL, Kandinsky, etc.
generate_video OpenAI Sora-style /videos/generations and Agnes-style /videos; Supports text-to-video, image-to-video (image), and keyframes (keyframes); duration defaults to 5 seconds
generate_vision OpenAI-compatible multimodal /chat/completions; Supports multiple images (Data URI, file://, local paths); Parameters include prompt, images, detail, etc.
generate_tts / generate_music Shares the OpenAI-compatible /audio/speech endpoint; TTS and music models are separated based on ID keywords and do not mix

The five tools for Image / Video / Vision / TTS / Music require the provider to be OpenAI-compatible (default apiProtocol: openai). If configured with a different protocol, the call will be rejected before execution with a prompt. generate_tts supports MiniMax preset voices and voice cloning via clone_audio + voice_name (persisted in ~/.dsh/llm-multimodal-voices.json); this requires the provider to support MiniMax-compatible files/upload and voice_clone.

Integration with media-studio and media-preview

The author suggests using this in conjunction with dsh-media-studio (Canvas and asset orchestration) and media-preview (In-chat media preview) to form a “Generate → Orchestrate → Preview” closed loop. After installing media-studio, generate_image, generate_video, generate_tts, and generate_music default to outputStrategy=project. Artifacts are written to the corresponding directories under assets/ in the active project, returning projectId and canvasUrl. If media-studio is not installed or there is no active project, it falls back to outputDir (or /tmp if empty). media-preview handles rendering file:// paths as inline previews.

Installation & Activation

The plugin runs with the permissions of the current DSH process. Before installation, it is recommended to review the GitHub repository source code and LICENSE. Node engine requirements can be found in package.json: ^22.19.0 || >=24.0.0.

  1. Navigate to the DSH web profile directory:
cd ~/.dsh/profiles/web
  1. It is recommended to use the official command for installation (automatically writes to bundles and cordis.patch.yml):
dsh plugin --profile web add xiaokaizhou/dsh-llm-multimodal
  1. If installing directly via pnpm, you need to manually add the bundle to the package.json in the profile root directory (Default path: ~/.dsh/profiles/web/package.json; Windows: %USERPROFILE%\.dsh\profiles\web\package.json; For custom $DSH_HOME: $DSH_HOME/profiles/web/package.json):
pnpm add xiaokaizhou/dsh-llm-multimodal
"dsh": {
  "profile": {
    "bundles": [
      "dsh-llm-multimodal"
    ]
  }
}
  1. Restart dsh web after modifying configurations or source code.

Model Configuration

  1. Add a provider in DSH “Settings > Models”, pointing baseURL to your OpenAI-compatible gateway.
  2. Include keywords like image or video in the model ID for automatic plugin recognition.
  3. Use apiKeyEnv to specify an environment variable or fill in the apiKey directly in the provider.
  4. Restart dsh web.

Example llm-pi-ai structure:

llm-pi-ai:
  providers:
    - id: openai
      baseURL: https://api.openai.com/v1
      apiKeyEnv: OPENAI_API_KEY
      models:
        - id: gpt-image-1
          name: GPT Image
    - id: agnes
      baseURL: https://api.agnes.ai/v1
      apiKeyEnv: AGNES_API_KEY
      models:
        - id: agnes-video-2.5
          name: Agnes Video

Note: The documentation states that in the current version, the “automatic provider configuration interface is paused,” relying primarily on llm-pi-ai auto-discovery.

Typical Usage

Describe your needs naturally in a DSH conversation, and the assistant will select the appropriate tool:

  • Asking questions or continuing text → generate_text
  • Describing an image scene → generate_image
  • Describing video content → generate_video
  • Providing an image path/link and asking a question → generate_vision
  • Converting text to speech or generating music/BGM → generate_tts / generate_music

The tools discover available models from the configuration, so there is generally no need to pass the model parameter explicitly (though you can specify it in the conversation). Video generation uses polling and waits up to 10 minutes.

Scenarios & Notes

Target Audience: Developers who have already configured llm-pi-ai in DSH, want to cover text-to-image, text-to-video, visual Q&A, and TTS/Music with a single chat tool set, and use backends that are mostly OpenAI-compatible gateways.

Notes:

  • Except for generate_text, multimodal tools depend on the provider’s OpenAI-compatible interfaces.
  • The plugin and the community catalog SkillHub Plugin Page belong to the community ecosystem and have no official affiliation with DeepSeek or High-Flyer. DSH’s core philosophy is “Everything is a plugin.”
  • For canvas storage and preview capabilities, install dsh-media-studio and media-preview as needed; there are no hard dependencies on installation order.

Conclusion

dsh-llm-multimodal consolidates six types of generation capabilities into DSH tools and automatically recognizes models from llm-pi-ai, reducing the repetitive work of API integration.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye