dsh-better-reasoning-effort-fish: Edit Reasoning Effort and Input Modalities on the Official "Model" Page

Introduction

DeepSeek Harness (DSH) natively supports declaring reasoningEfforts (reasoning intensity) and input (input modality) for each model via the llm-pi-ai adapter. However, the official “Models” page editor card intentionally conceals these two fields. Consequently, third-party models often lack a reasoning level selector in the Composer and are treated as plain text. To fully utilize capabilities, users previously had to manually modify settings.yaml.

dsh-better-reasoning-effort-fish is a personal Fork of the community plugin dsh-better-reasoning-effort (original author HaoyueQin, upstream baseline v0.5.2), maintained by Fish-under-sea. It injects UI into the official model editor card and provides one-click auto-adaptation. Compared to the upstream version, this Fork cedes the settings.models.provider-card slot in the official model capabilities panel to allow coexistence with dsh-web’s model capabilities plugin.

What is this

npm Package Name: dsh-better-reasoning-effort-fish (Version 0.5.8 in current materials).
License: MIT (Copyright belongs to the original author; this repository’s LICENSE is unchanged).
Category: DSH Ecosystem -> Model Reasoning.

Plugin Type: Client + Host (Web client injection + host-side auto-fill logic). It does not alter DSH core functionality but anchors its injection onto the DOM of the official “Models” page, aligning with the card’s native save/cancel behaviors.

Core Features

The following capabilities are explicitly listed in the materials.

In-page Editing on Official Page

After expanding a model row, an “Options” editing block appears below the official capacity fields, including:

  • Reasoning Effort: Checkbox tiers (off / minimal / low / medium / high / xhigh / max), with an option to fill in the online value (e.g., a custom string received by the gateway when Composer selects High).
  • Input Modality: Checkboxes for image input, etc., to declare accepted modalities.
  • Endpoint Compatibility (appears when protocol is compatible): Configure reasoning budget fields / vLLM priority on openai-completions; configure max_output_tokens handling on openai-responses.

Changes enter a “pending write” state and are committed to disk when the card’s Save button is clicked; clicking Cancel or refreshing discards them along with other card fields.

Three checkbox intentions:

  1. None checked + Save -> Cancel declaration (revert to inheritance).
  2. Only ‘off’ checked + Save -> Disable reasoning.
  3. A specific tier checked -> Write declaration.

Auto-Adaptation and Auto-Fill

  • Auto-Adaptation: One-click fill-in for recommended tiers, online values, and modalities. Includes a built-in knowledge base (materials specify 15 vendors, 65 entries), wire protocol inference, and same-origin /models probing. Suggestions come with confidence annotations.
  • Auto-Fill: Fills in recommended declarations for undeclared models at startup; also patches declarations for models added during a session. Can be disabled via configuration (see autofill and modalityAutofill below).

Composer and Default Values

  • The official model menu popup can be replaced with an upstream-style Reasoning Effort slider (drag/keyboard support, optimistic submission with rollback on rejection). The bottom-right trigger button remains unchanged.
  • A default reasoning effort can be set on the model row, written to the settings document, and applied automatically when that model is selected for a new session.

Headers and User-Agent

Inside the Provider Card, the official headers field is editable (masked display, path merging), and the fetch layer’s user-agent can be precisely intercepted by origin; same-origin /models probing is covered as well.

Defensive Injection

Injection anchors to the official “Models” page DOM. If an official update changes the structure, the injection pauses without affecting the official page itself.

Changes in this Fork vs. Upstream

The upstream version occupies the settings.models.provider-card slot on the provider card to register the header editor. This slot is a keyed slot: only one entry can exist for the same (key, priority). @linxin666/dsh-client-ui-model-capabilities (dsh-web model capabilities panel) uses the same llm-pi-ai key and default priority as the upstream version, causing the model capabilities panel to silently disappear if both are installed.

This Fork moves the header editor to the card’s own editor container and no longer registers that slot, allowing the model capabilities panel to display normally while header editing remains inside the card. The plugin ID, host route prefix, and package name have been separated from the upstream version. Theoretically, they can coexist in the same profile, but the materials recommend installing only one to avoid two UIs modifying the same settings simultaneously.

Installation and Activation

Environment Requirements (from README badges and package descriptions):

  • DeepSeek Harness >= 0.1.5-alpha.1 (Materials specify current verification against 0.2.0-rc.2 builds and gates).
  • Node ^22.19.0 || >=24.

Install from npm (Recommended):

# Desktop Edition
dsh plugin --profile desktop add dsh-better-reasoning-effort-fish

# Web Edition
dsh plugin --profile web add dsh-better-reasoning-effort-fish

DSH’s built-in pnpm minimum-release-age is 24 hours: installing a version released less than a day ago may resolve to the “latest sufficiently old version”. To install a specific version immediately, specify the package name with the version, e.g.:

dsh plugin --profile web add dsh-better-reasoning-effort-fish@0.5.8

Install via GitHub Release tarball (Skips registry and release cooldown; replace the version number in the URL when upgrading):

dsh plugin --profile web add \
  https://github.com/Fish-under-sea/dsh-better-reasoning-effort-fish/releases/download/v<version>/dsh-better-reasoning-effort-fish-<version>.tgz

Restart DSH and force-refresh your browser after installation.

If you previously used HanaAyane’s dsh-reasoning-effort, the materials recommend removing it first to avoid two tier controls appearing in the same slot in the Composer:

dsh plugin --profile web remove dsh-reasoning-effort

Typical Usage

After completing the installation steps above, follow this workflow to configure third-party models:

  1. Configure the third-party provider (API Key, etc.) on the official “Models” page.
  2. Expand the target model row and use the injected editing block:
    • Check reasoning tiers and fill in online values (if needed);
    • Check image input, etc., in the “Input Modality” section;
    • Click “Auto-Adapt” for recommended values if needed, then fine-tune via the official input fields;
    • Click the card’s Save to persist changes.
  3. If custom gateway behavior is needed, check the “Endpoint Compatibility” section and toggle items based on the protocol type.
  4. Expand the provider card and edit user-agent, etc., in the Headers area (saved with the card).

Once declared, the model should show a reasoning effort selector in the Composer; models with image input declared can handle attachments according to DSH capabilities.

Optional Configuration

Configurations can be written in the plugin config block of settings.yaml:

Config Key Default Value Description
autofill true Auto-fill recommended declarations for undeclared models at startup
modalityAutofill true Whether auto-fill includes input modality
probeTimeoutMs 15000 /models probe timeout (milliseconds)
bootRetryDelaysMs [1000, 2000, 4000, 8000, 16000, 30000] Retry delays after startup auto-fill failure
defaultGuard true Fallback to vendor default tier for calls without a specified effort, instead of sending thinking: disabled

Example:

- insert:
    - id: dsh-better-reasoning-effort-fish
      name: dsh-better-reasoning-effort-fish
      config:
        autofill: true
        modalityAutofill: true
        probeTimeoutMs: 15000
        bootRetryDelaysMs: [1000, 2000, 4000, 8000, 16000, 30000]
        defaultGuard: true

Use Cases and Notes

Target Audience: Developers who extensively use third-party OpenAI-compatible gateways or self-hosted relays in DSH, need to declare reasoning tiers and vision modalities via UI, and do not want to hand-write YAML indefinitely.

Permissions & Security: The plugin runs with the current DSH process permissions and reads/writes settings documents. Review the repository source code and MIT license before installation. The materials explicitly state: credentials in headers are not masked on disk (only the read view is masked; the settings file remains plaintext). Treat them with the same caution as API Keys.

Known Limitations (Summary):

  • Injection relies on the official “Models” page DOM; plugin adaptation is required after major official structural changes.
  • Auto-adaptation probing only responds to loopback and IP literal hosts and does not follow redirects.
  • reasoningEfforts is a declarative suggestion; actual endpoint behavior is subject to the provider’s documentation.
  • Modality vocabulary follows the pi-ai core (currently text / image).
  • The headers area relies on the official card editor container structure; this Fork ceded the slot for coexistence. If the official structure changes, the headers area may temporarily not appear, but it will not break the official page.
  • Only one user-agent modifier should exist at a time; the plugin will warn of known conflicts of this type.

Community Plugin Directory (SkillHub) is not officially affiliated with DeepSeek or High-Flyer; star counts and stats are subject to the directory page (0 in current leads).

Links

This plugin moves reasoningEfforts and input from YAML back to the official model editor card and fixes slot conflicts for the dsh-web ecosystem. If your profile has other model capability plugins installed, prioritize evaluating whether this Fork better meets your coexistence needs.

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

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

Xiaoye