Preface¶
DeepSeek Harness (DSH) focuses on a plugin-based architecture, but advanced features for certain models (such as Reasoning levels and input modality switching) are not fully implemented in the official UI, or lack fine-grained control entry points. The dsh-model-think-level plugin aims to bridge this gap by injecting controls and taking over routing configuration, allowing users to manage model advanced attributes more directly.
Plugin Introduction¶
This is a DSH plugin maintained by developer GaoHu1997, licensed under MIT (v1.1.7). It primarily addresses the lack of a unified toggle and intensity adjustment for “Reasoning” capabilities in the official Models page and input box, as well as issues where provider and model selection are not intuitive enough.
Core Features¶
The plugin provides the following core capabilities:
-
Models Page Enhancement
Injects a Thinking toggle and intensity/modality editor into each model row on the official Models page. The plugin hides the official “Reasoning Level” editing area to avoid duplicate controls on the same field. -
Input Box Menu Enhancement
Adds a provider selector, visual badges, and level rows to the model menu in the input box. It also supports search, drag-and-drop sorting, and provider enable/disable toggles. -
Request Header Takeover
Supports taking over request headers and the user-agent based on routing to adapt to specific downstream services.
Detailed Explanation of Long Cache Retention Configuration¶
In the “Advanced Configuration” section of a provider card, below the request headers, there is a separate “Other Configuration” section. The “Long Cache Retention” toggle within it controls compat.supportsLongCacheRetention.
- Display Conditions: This toggle is only displayed for the following protocols:
openai-completions,openai-responses,azure-openai-responses,openai-codex-responses,anthropic-messages. Other protocols will directly indicate that it is not supported. - Activation Timing: When creating a new provider card, this section will not be displayed because there is no real route available to write to yet.
- Operation Method: Writes take effect immediately; no DSH restart is required.
- Mechanism: This toggle controls whether to send OpenAI cache fields (
prompt_cache_keyandprompt_cache_retention).- Off: Writes
compat.supportsLongCacheRetention: falseand stops sending cache fields. - On: Deletes the key (
unset) and follows the adapter default. If the underlying configuration (e.g.,cordis.patch.yml) also fixes this key, explicitly writingtrueis required to override it.
- Off: Writes
- Note: This toggle only controls the
prompt_cache_keyfield and does not override other switches incompat(such assupportsDeveloperRole).
Compatibility Fields and Configuration Adjustments¶
The plugin no longer provides dedicated editing controls for thinkingTokenBudgetField, vllmPriority, or supportsMaxOutputTokens. These values are still utilized by DSH’s pi-ai adapter. When modifying a model’s thinking tier or input modality, the plugin preserves these values and other manual compatibility configurations to avoid overriding the provider’s customized behavior.
To manually adjust these legacy values, you must edit the configuration file:
- Back up the current profile’s
cordis.patch.yml(located inprofiles/<profile>/within the DSH data directory). - Locate the provider and model row corresponding to
llm-pi-ai, and modify or delete entries under thecompatfield:thinkingTokenBudgetField: The request field name for token budget (e.g.,thinking_token_budget). If deleted, the default field is used.vllmPriority: If deleted, custom vLLM priorities will no longer be sent.supportsMaxOutputTokens: If deleted, the adapter’s default behavior is restored.
Use Cases and Notes¶
This plugin is suitable for DSH users who need fine-grained control over model “Reasoning” capabilities, visual modes, and handling compatibility issues with specific API relays.
- Security Warning: This plugin runs with DSH process privileges. It is recommended to review the source code and license before installation.
- Data Safety: Do not delete configuration files containing API keys.
- Installation Method: The plugin does not provide a single installation command; it is typically installed via DSH’s directory installation or from the GitHub source.
Conclusion¶
dsh-model-think-level simplifies the advanced configuration workflow for complex models in DeepSeek Harness by filling in the gaps in the official UI. For more details and source code, please refer to the GitHub repository.