dsh-reasoning-adapter

Gives hand-declared models on custom or relay routes a vendor-matched reasoning-effort picker: detects Claude, GPT, DeepSeek, GLM, Kimi, Qwen, Gemini, Grok, Doubao or MiMo from the model id, display name or endpoint host, fills in only the levels that vendor accepts plus the pi-ai compat fields its request format needs, and writes them into the profile config so the Models page reasoning switch turns on. Models you edit or switch off are left alone, and a Models page card hands them back on request.

Overview

Gives hand-declared models on custom or relay routes a vendor-matched reasoning-effort picker: detects Claude, GPT, DeepSeek, GLM, Kimi, Qwen, Gemini, Grok, Doubao or MiMo from the model id, display name or endpoint host, fills in only the levels that vendor accepts plus the pi-ai compat fields its request format needs, and writes them into the profile config so the Models page reasoning switch turns on. Models you edit or switch off are left alone, and a Models page card hands them back on request.

Installation

Install from GitHub

dsh plugin --profile web add github:Hatiaa/dsh-reasoning-adapter

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Compatibility is unconfirmed. Check the project documentation for supported versions.