DeepSeek Harness Plugin: dsh-provider-model-picker

Preface

DeepSeek Harness’s Composer control suffers from ambiguity when handling models with identical names. When two providers offer the same model (e.g., DeepSeek-V4.1-Flash), the default trigger displays only the model name, making it impossible to distinguish the source. dsh-provider-model-picker is designed to resolve this ambiguity; it explicitly displays the provider name within the control while retaining the native provider grouping selector.

Plugin Introduction

This plugin is maintained by icrefin and is released under the MIT open-source license. It overrides the default behavior by registering a low-priority slot, ensuring that the Composer control displays content in a Provider/Model format (e.g., DeepSeek Demo/DeepSeek-V4.1-Flash) instead of just the model name.

Core Features

  1. Provider/Model Display: Re-registers conversation.input.model (priority -1) to display the provider name alongside the model name in the trigger, while providing a provider-grouped model list.
  2. Reasoning Effort Support: Supports reasoning effort selection (off, minimal, low, medium, high, xhigh, max). The reasoningEfforts field must be declared in the host configuration YAML.
  3. UI and Interaction: Supports keyboard navigation (↑/↓ to move rows, Tab to accept/leave, Esc to return) and follows host CSS variables for compact display.
  4. Localization: Includes interface text for English and Simplified Chinese.

Typical Usage

  • Scenarios with Identical Model Names: When DeepSeek-V4.1-Flash exists in both DeepSeek Demo and Baidu Team, the control will display DeepSeek Demo/DeepSeek-V4.1-Flash instead of just DeepSeek-V4.1-Flash.
  • Configuring Reasoning Effort: Declare the reasoningEfforts field for the model in the host YAML. For example:
    - id: llm-pi-ai
      name: "@deepseek-ai/dsh-llm-pi-ai"
      config:
        providers:
          baidu-team:
            models:
              - id: deepseek-v4.1-flash
                name: BD DeepSeek-V4.1-Flash
                reasoningEfforts:
                  low: low
                  medium: medium
                  high: high

Implementation Details

  • Priority Mechanism: The plugin registration priority is -1, which is lower than the default value of 0. This ensures that the native plugin remains installed, and if the component crashes, it falls back to the native trigger.
  • Conflict Handling: If another plugin already holds priority -1, the registration will be rejected.
  • Dependency Injection: Uses inject to obtain modules such as @deepseek-ai/dsh-client-locale, but does not directly touch remote or remote.session (these injections are mainly for the callee).

Notes

  • The installation command is not explicitly listed in the provided description.
  • It does not declare host routes, services, or configurations.
  • It only exports the . entry to carry the browser client entry point.
  • It runs with the permissions of the current DSH process; source code and licenses should be checked before installation.

Summary

This plugin resolves the model name ambiguity issue through low-priority registration, providing a clearer Provider/Model display. It not only fixes visual ambiguity but also maintains compatibility with native controls, making it suitable for scenarios requiring fine-grained management of multi-provider models.

  • Directory Page: https://www.skillhub.cn/plugins/icrefin/dsh-provider-model-picker
  • GitHub: https://github.com/icrefin/dsh-provider-model-picker
羽毛球分组比赛记分
小程序二维码

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

Xiaoye