dsh-model-retry-settings: DeepSeek Harness Model Request Retry Count Control

In the default configuration of DeepSeek Harness (DSH), the retry strategy for model requests is typically determined by configuration files, and no graphical interface is provided for users to adjust it directly. If developers need to modify the number of retries for different providers, they must manually edit the configuration. The plugin introduced in this article provides a visual control entry point for this purpose.

Plugin Overview

icrefin/dsh-model-retry-settings is a plugin for DeepSeek Harness, categorized under model inference. It adds a preference card to the Settings → Model page of the Web client, allowing users to directly set the number of retries for failed model requests for each provider.

Core Features

This plugin primarily addresses the following issues:
* Visual Control: Adds a preference card to the Settings → Model page in the Web interface.
* Adjust Retry Count: Controls the number of retries (maxRetries) for failed model requests for each provider.
* Replace Policy: Directly replaces the provider’s retryPolicy rather than restricting it.
* Coordinate Execution: Works in conjunction with the dsh-llm-retry plugin, which handles the execution of retry logic.

Installation and Activation

  1. Prepare Environment: Ensure DeepSeek Harness is installed.
  2. Download Plugin:
    sh scripts/install.sh
This command packages the plugin into the `dist/` directory.
  1. Install to Harness:
    The packaged tarball must be installed, not the directory itself. For desktop profiles, you can manually upload it via Settings → Plugins; alternatively, use the command-line tool to specify the tarball path.

Usage Instructions

  1. Open the DeepSeek Harness Web client.
  2. Navigate to the Settings → Model page.
  3. Find the Request retries card at the bottom of the page.
  4. Set Max retries (integer, range 0-50).
  5. Note: The default value is 5 upon new installation, maintaining behavior consistent with the original version. Only retry policies in normal mode are affected by this setting.

Precautions

  • Dependency Requirement: This plugin must be used in conjunction with the dsh-llm-retry plugin to be effective.
  • Restart Required: After adding the plugin, Harness must be restarted to load the new module.
  • Installation Method: Ensure you install the packaged .tgz file; do not install the source directory directly.
  • Scope: Applies only to retry policies in “normal” mode.
  • Dynamic Update: The set values are temporary and are updated in-place on running fibers, allowing changes to take effect without a restart.

Ecosystem Background

DeepSeek Harness (DSH) adopts an “everything is a plugin” design philosophy, and this plugin is listed in the community directory.

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

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

Xiaoye