yuioi666/dsh-plugin-model-capability
A Model Capability page for the llm-pi-ai provider routes: thinking levels, context window, output cap, modalities and gateway compatibility.
Provider configuration in DSH lives in a profile patch, and hand-editing it is where models end up with no declared context window, thinking levels that map to no wire value, or a supportsDeveloperRole flag set on a gateway that ignores it. This adds a Model Capability page to in-app settings with a per-model editor (thinking levels, context window, output cap, input modalities) and a per-route editor for defaults and gateway compatibility fields. Seven built-in presets cover common gateways, you can save your own, and the models.dev sync is deliberately controlled rather than automatic. An advisory panel surfaces diagnostics — legacy-gateway lookalike URLs, reasoning levels with no wire mapping, models without an explicit contextWindow, empty routes — and the page follows the DSH UI language with an optional language pin (English or Chinese) that persists in the profile.
Install
dsh plugin --profile web add dsh-plugin-model-capabilityRequires a DSH installation whose profile serves the browser UI, and DSH 0.1.7-rc.2 or newer — the README states v1.4.0 migrated to the ConfigForms/volatile-Config settings kernel that this DSH line introduced, so the page does not appear on older builds. It edits llm-pi-ai.providers in the active profile rather than a separate store.
Compatibility
Edits live in the active profile's llm-pi-ai.providers entry, so the page and the config cannot disagree. The author states the two failures it exists to prevent: gateway incompatibility (DashScope in compatible-mode, Moonshot/Kimi, Zhipu/BigModel, MiniMax, Volcengine Ark, SiliconFlow, Baidu Qianfan and others do not all accept the same protocol dialect) and hand-edited profile patches, which is where context windows and reasoning levels get silently wrong.
Details
- Repo: yuioi666/dsh-plugin-model-capability
- Category: Models & Providers
- Stars: 6
- Version: 1.4.0 (npm)
Alternatives
ringoage/dsh-subagent-model-picker · Jensen-Yao/dsh-model-palette · 1624318455/dsh-plugin-adapter