dsh-model-router: A Thin Routing Strategy Plugin for DeepSeek Harness (DSH)
dsh-model-router is a thin routing policy plugin for DeepSeek Harness (DSH), version v0.2.2, licensed under the MIT License. It adds rule execution on top of DSH's existing model management, with core features including deterministic keyword routing, the whitelist-based model switching tool `model_route` that is disabled by default, and an isolated Beta image generation channel `image_gen`. Routing rules are executed in configuration order, stopping at the first match, while preserving the current state if no rule matches; model switching requires precise validation of provider, model, and other fields. `image_gen` uses an OpenAI-compatible endpoint, enforces HTTPS and strictly restricts result downloads, and supports integration with third-party services such as Seedream; however, video, audio, and 3D features are not included.
Read Moredsh-model-router: Model Routing and Cost Dashboard for DeepSeek Harness
`dsh-model-router` is a model routing and cost optimization plugin for DeepSeek Harness. It routes simple requests to cheaper models through heuristic rules, reserves complex requests for the main model, and automatically falls back on instantaneous failures. This approach reduces costs while ensuring quality for requests requiring context, vision, or reasoning capabilities. The plugin supports vision-aware routing, prioritizing available vision models if messages contain images, and respects user-selected models. In automatic mode, it prompts the user for a quick response when a simple request is detected. Additionally, it provides a real-time panel in the Composer Dock, displaying token usage, cache hits, and estimated costs based on the pricing table. Installation requires ensuring the `dsh` CLI is in the PATH, followed by restarting the Web profile.
Read More