DSH-Reasoning-Setup: Completing Reasoning Levels for Models Without Declared Reasoning Capabilities

Preface

In DeepSeek Harness (DSH), “Reasoning Effort” is not a global switch, but a declarative capability written into each model’s metadata. The “Reasoning Effort” row only appears in the model selector if the model resolved by the provider/model route includes a reasoning tier table. Custom models added manually in models: are treated as non-reasoning models by default; you must declare reasoningEfforts for each entry individually and align the wire values with thinkingFormat. Manually editing YAML makes it easy to mistype tier names or gateway parameter strings. The following introduces the community plugin dsh-reasoning-setup (maintainer Ayelsh), which brings scanning, tier selection, and write validation into a settings page. It writes to the same settings document used by the llm-pi-ai plugin and dsh-zhipu-plan.

What is this

dsh-reasoning-setup is an out-of-tree profile bundle (DSH plugin) categorized under Model Reasoning. It scans registered Providers and models to identify models that lack declared reasoning capabilities. It provides a settings page to directly declare reasoningEfforts and thinkingFormat for editable routes. The tier and format vocabulary, along with validation rules, mirror the logic found in resolveModelReasoning within packages/llm/llm-pi-ai/src/catalog.ts in the harness. Validation follows pi-ai parser rules before writing to disk, preventing invalid configurations from being saved.

Why it is needed

In DSH, the visibility of Reasoning Effort depends on whether the model metadata contains a tier table. If a model on a catalog route does not have reasoningEfforts declared in the settings document, the “Reasoning Effort” option will not appear in the selector. A common pattern for custom Providers is a route with a models: list. For these entries, it is more practical to select tiers (off / minimal / low / medium / high / xhigh / max) via a UI and fill in the wire values sent to the gateway for each tier (off can be left empty, indicating no reasoning parameter is sent when that tier is selected), rather than repeatedly editing YAML.

Core Features

Scanning

Lists all registered Providers and their models, marking whether each model currently provides reasoning tiers, which tiers are available, and the default tier. Providers that cannot be edited via the llm-pi-ai settings document (e.g., deepseek-official mentioned in the README) are displayed as read-only.

Declaring and Modifying

For editable models:

  • Check the tiers to offer: off, minimal, low, medium, high, xhigh, max.
  • Fill in the wire value (the string sent to the gateway in the request) for each tier.
  • Optionally set thinkingFormat (the README lists 11 types such as openai, deepseek, qwen, zai, etc.).

Removing Declarations

Declarations written by this page can be deleted, reverting the model to catalog inheritance or default behavior. Note: “Remove Declaration” only removes the reasoningEfforts / compat.thinkingFormat written by this page; it does not change a catalog model to reasoningEfforts: false.

Write Location and Concurrency

  • Route with models: list → providers.<route>.models.<i>.reasoningEfforts (and compat.thinkingFormat on the same entry).
  • Catalog route (e.g., zai, zai-coding-cn) → providers.<route>.modelOverrides.<model>.reasoningEfforts.

Writes utilize a revision optimistic lock; if the document has been modified by another page after scanning, the write will be rejected (reasoning-setup/conflict) rather than silently overwriting.

After saving, reopen the model selector to see the “Reasoning Effort” row.

Installation and Activation

The host requires 0.1.7-rc.2 or above; the README notes installation tested on 0.2.0-rc.1 (relies on the dsh-base mounting of the llm/settings/Typert seam). The current plugin package version is 0.1.3, released under the MIT license.

Install using any of the following methods and restart DSH:

Plugin Market (dshmarket)

Search for dsh-reasoning-setup in the DSH plugin market, click install, and restart. The market entry points to a tarball containing build artifacts, so no local toolchain is required for installation.

Pre-built Tarball (Offline or Manual)

Install via the in-app Settings → Plugins by selecting the release package and restarting. The URL always points to the latest release, with lib/ pre-built:

https://github.com/Ayelsh/reasoning-setup/releases/latest/download/dsh-reasoning-setup.tgz

Source Installation

The repository includes committed build artifacts lib/. Source installation does not require local building, nor will it run prepare / esbuild during installation:

dsh plugin --profile <profile> add github:Ayelsh/reasoning-setup

Replace <profile> with the profile name you are actually using.

Profile Bundle

Append dsh-reasoning-setup to dsh.profile.bundles (the package includes lib/).

The plugin itself does not declare runtime dependencies; at runtime, it reuses harness packages already loaded by the host via the profile’s module fallback linking.

Typical Usage

  1. Install and restart DSH. Ensure your custom Provider or catalog route is configured in the llm-pi-ai settings document.
  2. Open the settings page provided by this plugin, wait for the scan to complete, and check if models already have reasoning tiers.
  3. For models marked as editable that do not yet have tier declarations, check the required tiers and fill in the wire values; if the gateway requires a specific reasoning parameter format, set thinkingFormat.
  4. Save. If a reasoning-setup/conflict appears, it means the settings document was modified by another page after scanning. You need to refresh the page, rescan, and then submit.
  5. Return to the conversation or task interface, reopen the model selector, confirm “Reasoning Effort” appears, and switch tiers to verify request behavior.

Developers modifying the UI or host logic from source, the README suggests running locally:

pnpm install
pnpm run build
pnpm run verify

verify checks imports, loader manifests, tier/format vocabulary, and scan rule fixtures against the deepseek-harness.

Use Cases and Notes

Who it is for

  • DSH users using custom Providers with manually registered models in models: where “Reasoning Effort” is missing from the selector.
  • Configuration maintainers who need to make modelOverrides reasoning declarations for individual models on catalog routes without repeatedly editing YAML manually.

Boundaries and Permissions

  • Can only edit routes configured via the llm-pi-ai settings document; models from other adapters are displayed as read-only only.
  • The tier and format vocabulary evolves with the harness catalog.ts; if behavior becomes abnormal after a harness upgrade, maintainers should rerun pnpm run verify in the plugin repository and compare with the upstream gating table.
  • The plugin runs under the current DSH process permissions and will read/write LLM-related settings documents. Before installation, review the GitHub Repository source code, LICENSE, and NOTICE; this project is not affiliated with, endorsed by, or sponsored by DeepSeek.

Conclusion

dsh-reasoning-setup turns “which models lack reasoning tiers and where to write them in the settings document” into a scannable, form-editable workflow, sharing the same configuration and validation rules as llm-pi-ai. When you need a UI-based way to complete reasoningEfforts, you can install and try it from the community catalog or GitHub.

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

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

Xiaoye