DSH Reasoning Effort: Adding "Thinking Intensity" Configuration for Third-Party Model Providers

Introduction

After connecting third-party model services such as OpenAI-compatible relay stations or Anthropic-compatible interfaces in DeepSeek Harness (DSH), the “Reasoning Effort” option often disappears from the model selector in the settings page and conversations. Models like GPT and Claude, which natively support tiered reasoning, can only run with default behavior. While DSH’s official DeepSeek service provider comes with built-in Reasoning Effort support, custom providers require manually writing reasoningEfforts into the model configuration. This manual maintenance is costly and prone to inconsistencies with the tiers in the built-in model catalog.

The plugin introduced below, published by community maintainer YIYuNCU, adds a Reasoning Effort panel to the custom provider editing card under Settings → Models. It provides recommended presets aligned with the DSH built-in catalog for common series such as GPT, Claude, Grok, GLM, and MiMo. Once saved, tiers can be switched in the conversation model selector.

What is this

  • npm Package: dsh-desktop-ui-reasoning-effort (Current version 0.1.2, MIT License)
  • Source Repository: YIYuNCU/DSH-Reasoning-Effort
  • Positioning: A DSH Desktop plugin designed for scenarios using pi-ai models via “Custom” or built-in catalog third-party providers. It allows selecting model-specific reasoning effort tiers and supports applying recommended presets with one click.

Configuration is written to providers.<provider>.models[i].reasoningEfforts under the llm-pi-ai namespace; under the Anthropic protocol, it may also write compat.forceAdaptiveThinking as needed. The plugin runs with DSH process privileges; it is recommended to review the repository source code and license before installation.

Note: There is another similarly named package on npm, dsh-reasoning-effort (by a different author), which fills all models with a unified set of five tiers in the background. Since both write to the same configuration location, they should not be installed simultaneously.

Core Features

Open the editing card for a custom provider, expand Custom Settings, and the Reasoning Effort panel will appear below “API Protocol”:

  1. Each saved model under that provider occupies one row, with options for Unset, Recommended Preset, or Custom.
  2. When Custom is selected, you can individually enable seven tiers: Off, Minimal, Low, Medium, High, XHigh, and Max (specific available tiers vary by model).
  3. The Apply Recommended Presets button in the top right sets tiers for recognizable models all at once.
  4. Changes are saved via the Apply button at the bottom of the card; clicking Cancel discards drafts.

After successful saving, select the corresponding model in the conversation interface, and the Reasoning Effort option will appear in the model selector. The built-in DeepSeek official provider already has Reasoning Effort and will not display this panel; third-party models in the built-in catalog that already have Reasoning Effort will default to showing “Follow Built-in Catalog,” and Custom should only be used when overriding default tiers is necessary.

Recommended presets cover GPT, Claude, Grok, GLM, and MiMo series (including naming variants like -thinking, date suffixes, openai/, anthropic/, etc.); image models, gpt-4, non-thinking chat versions, and unrecognizable models have no presets and must be configured manually via Custom.

Installation and Activation

The DSH command line dsh.cmd is located in resources\runtime\cli\bin\ within the installation directory. Restarting DSH is required after installation.

Install from npm (Recommended):

dsh.cmd plugin --profile desktop add dsh-desktop-ui-reasoning-effort

Install from GitHub:

dsh.cmd plugin --profile desktop add github:YIYuNCU/DSH-Reasoning-Effort

Install from a local directory (requires obtaining the repository code yourself first):

dsh.cmd plugin --profile desktop add link:<local-directory-path>

If the panel is still not visible after restarting, you can execute (to include the plugin bundle in the desktop profile):

node "%USERPROFILE%\.dsh\profiles\desktop\node_modules\dsh-desktop-ui-reasoning-effort\scripts\enable-bundle.mjs" desktop

Then restart DSH again.

Update: For npm or GitHub sources, repeat the same add command and restart; for local link sources, update the code in the directory and restart.

Typical Usage

  1. Open Settings → Models and click Edit on the target provider row.
  2. Expand Custom Settings and find Reasoning Effort under “API Protocol”.
  3. Select tiers for each model: Click Apply Recommended Presets, or select “Recommended Preset”/”Custom” in the single-row dropdown and check the tiers; modified rows will be marked as “Unsaved”.
  4. Click Apply at the bottom of the card; after collapsing, a prompt will appear below the row stating “Saved Reasoning Effort for N models”.
  5. Return to the conversation, select the model in the model selector, and use the Reasoning Effort option; if it does not appear immediately, refresh the page.

To restore defaults: Change the model back to Unset and click Apply. Newly added models must first be saved to the list by clicking Apply in the editing card before they will appear in the Reasoning Effort panel.

Use Cases and Notes

Suitable for: Users utilizing custom OpenAI/Anthropic compatible providers who need to configure Reasoning Effort per model in the UI and maintain consistency with the DSH official model catalog tiers.

Common Issues (Excerpted from maintenance documentation):

  • The panel only appears for custom-added third-party providers and third-party providers in the built-in catalog; the DeepSeek official provider does not display it.
  • If the selector still shows no options after saving: Refresh the page; if the model still shows “Unset”, check the failure reason below the card.
  • Conversation reports parameter or tier unsupported errors: Some relay stations do not recognize XHigh, Max, Minimal, etc. Switch to Custom and remove the tiers unsupported by the provider.
  • Selecting Off might still result in thinking: For most models, Off means no thinking parameters are sent, and whether thinking occurs depends on the server side; GPT 5.1+, Grok 4.3, GLM 5.2, etc., will explicitly inform the server “not to think” when Off is selected.
  • After uninstalling the plugin, the Reasoning Effort configuration written to models will remain; to clear it, change models back to Unset before uninstalling.

Uninstall: Edit %USERPROFILE%\.dsh\profiles\desktop\package.json, remove dsh-desktop-ui-reasoning-effort from dependencies and dsh.profile.bundles, delete the corresponding link under node_modules, and restart DSH.

The plugin declares a peer dependency on @deepseek-ai/dsh (^0.2.0-rc.2, optional). For bug reports, please visit the repository Issues, including your DSH version, API protocol, and model name.

Summary

DSH Reasoning Effort (dsh-desktop-ui-reasoning-effort) moves the reasoning effort configuration for third-party provider models into the Settings → Models editing interface, reducing the burden of manually editing reasoningEfforts. It provides recommended presets consistent with the built-in catalog for common model series. Community plugin directory page: skillhub.cn/plugins/YIYuNCU/DSH-Reasoning-Effort; for source code and detailed preset tables, see the GitHub Repository README.

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

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

Xiaoye