dsh-llm-model-tuning: Configure inference intensity and multimodal input per model on the Models page

Introduction

When using llm-pi-ai in DeepSeek Harness (DSH) to connect custom providers, multiple models are often mounted under the same route: some support reasoning effort, while others do not; some accept images, while others are text-only. The built-in provider cards deliberately do not provide reasoning controls at the provider level—because model capabilities vary within the same provider, provider-level settings are easily rejected by some models.

dsh-llm-model-tuning places the editing granularity on each model entry: within each custom provider card under Settings → Models, you can configure reasoningEfforts and input for models under the route respectively, and set defaultInput at the route level to keep vision gateways not described by the catalog usable. Maintained by xurunxin, categorized under model inference; see the SkillHub plugin page for the community directory and GitHub for the source code.

What is this

In a word: it is a pure client bundle that mounts a card in the settings.models.provider-card slot of DSH Settings → Models. It reads and writes fields related to “per-model reasoning tiers and multimodal input” in the llm-pi-ai settings section. The Host-side package body is intentionally empty and serves only to let @deepseek-ai/dsh-client-modules scan dsh.client and include lib/client.js in the browser startup graph.

Writes land in the llm-pi-ai section, and no restart is required—the adapter resolves the profile per request.

Core Features

Edited Fields

The card edits two fields for each model entry listed under the route and supports a route-level fallback:

Field Meaning
reasoningEfforts The effort tiers provided by the model, and the wire spelling for each tier sent to the wire. false indicates a non-reasoning model; if omitted, it inherits from the installed catalog.
input The request modalities accepted by the model (text, image). If omitted, it inherits from the catalog.
defaultInput (route level) The default input modality fallback when the catalog does not describe a certain type of gateway.

Relationship with the Built-in Editor

  • The built-in provider editor does not provide reasoning controls; this plugin supplements per-model capabilities.
  • The card only modifies reasoningEfforts, input, and defaultInput; capacity, compatibility switches, and credentials are still handled by the built-in editor and settings.yaml.

Write and Validation Behavior (Encountered during use)

  • Reads and writes occur in the user layer of the llm-pi-ai section; for routes existing only in the composition base, the resolved value is read out first before allowing writes to the user layer.
  • Writes are performed via the settings.mutate path; unrendered fields will not be deleted; namespace revision is used to prevent stale card overwrites under concurrency.
  • models and modelOverrides are mutually exclusive: models replaces the entire catalog table, while modelOverrides reshapes on top of it; the adapter does not allow both to coexist. The card edits whichever one already exists in the profile; if neither exists, it can guide the user to add a modelOverrides entry.
  • input / defaultInput: Declarations replace the modality list rather than append to it; to avoid checking only image while losing text, the card always retains text; clearing the last optional modality removes the field, allowing the adapter default to take effect.
  • The card locally reproduces the adapter’s rules for reasoningEfforts (each tier requires a wire spelling, only off can be empty, at least one tier required besides off) so that specific fields can be named when a rejection occurs.

Why a Client Plugin is Sufficient

The entire contribution is a card mounted on the provider row settings namespace. All configurable pi-ai routes declare settingsNs: 'llm-pi-ai', and registering once under this key covers all custom provider cards (including saved rows and “Add Provider” drafts); the Models area itself is not aware of this plugin.

Installation and Activation

Environment Requirements:

  • dsh 0.1.7 or newer. The card reads and writes via the configForms service; settingsScope has been removed since 0.1.7, and cards still injecting the old service will not activate.
  • The deployment must compose the llm-pi-ai adapter (which owns the settings namespace edited by this card). The card uses configForms.whileServed to follow the adapter; without this adapter, instead of showing a dead panel, the card will not appear at all.

Install the bundle using the plugin manager, with the target being the absolute path to this package directory (do not manually modify the profile’s package.json or cordis.patch.yml, and do not run package managers in the profile directory yourself):

plugin_manager  action: install_bundle  target: <absolute path to this package>

The above command completes package installation and bundle selection: adds dependencies, links them into the current profile’s node_modules, and appends the package to dsh.profile.bundles (since the package declares dsh.bundle.patch).

It installs as a symlink pointing to the directory, so subsequent source code changes do not require reinstallation. Newly installed bundles can be activated via HMR; if replacing an existing bundle, a profile restart is required to load the new JavaScript module generation.

Package version 1.1.0 (see package.json), License MIT, Node >=20.

Typical Usage

  1. Ensure dsh ≥ 0.1.7 and the profile has composed llm-pi-ai.
  2. Run install_bundle to this plugin directory using the command above.
  3. Open DSH Settings → Models and enter any custom provider card.
  4. In the per-model area provided by the plugin:
    - Configure reasoningEfforts tiers and wire spellings for models supporting thinking; set non-reasoning models to false or inherit from the catalog.
    - Check input for vision models (text is retained; image can be added).
    - If the vision model served by the gateway is not in the catalog, set defaultInput at the route level.
  5. Settings take effect on the next request after saving; settings land in the user’s settings.yaml, and the card itself holds no state.

If the profile uses modelOverrides instead of the full models table, edit the above fields on the corresponding override entry; if neither exists, add modelOverrides as prompted by the card before editing.

Use Cases and Notes

Who it is for: Developers using llm-pi-ai in DSH to build custom setups or mix multiple models, who need to distinguish reasoning effort and text/image input per model in the UI, and do not want to set a single value for the whole provider that might be rejected by some models.

Limitations (Explicitly listed in README):

  • Only edits reasoningEfforts, input, and defaultInput.
  • The schema accepts seven effort tiers: off, minimal, low, medium, high, xhigh, and max; values beyond this are retained upon write, but not editable via the UI.
  • Settings are stored in the user’s settings.yaml.

Security and Permissions: The plugin runs with the permissions of the current dsh process; please review the source repository and the MIT License before installation. SkillHub etc. are community directories and have no official affiliation with DeepSeek / High-Flyer.

Developers can run tests offline in the repository root directory (no additional dependency installation required):

npm test

Conclusion

dsh-llm-model-tuning supplements the missing per-model reasoning tiers and multimodal input editing in the Models settings page onto custom provider cards, writing to llm-pi-ai to take effect with requests. Requires dsh 0.1.7+ and a composed llm-pi-ai adapter.

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

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

Xiaoye