Описание
Ниже — оригинальный текст автора.
dsh-reasoning-options
Adds seven explicit reasoning levels to custom pi-ai models while retaining DSH's native Default / Provider default choice. Default sends no reasoning effort; it does not turn thinking off at the provider.
Requires DSH 0.2.0-rc.2 or later 0.2.x, on Web and Desktop. Install with the Desktop-provided dsh command (Application → Manage dsh Command):
sole plugin --profile desktop add dsh-reasoning-options@0.5.0
Use --profile web for Web. Restart DSH after package changes. Open Plugins → Installed → dsh-reasoning-options to configure it.
Default and existing configurations
The plugin no longer inserts reasoning: high on provider routes. New routes without a configured effort show DSH's native Default choice alongside off, minimal, low, medium, high, xhigh and max. The literal string default is never sent to pi-ai or the provider.
For routes configured by an older plugin version, choose Default (omit reasoning effort) in this plugin's provider dropdown. This removes only that route's reasoning setting using a revision-checked unset. Existing configured route defaults are preserved until you change them. If a conversation has an explicit effort selected, select Default again in the conversation's model menu. Default omits effort; the provider may still think according to its own defaults.
Existing custom effort declarations and reasoningEfforts: false are retained. The plugin does not promise that every model supports every explicit level.
Other settings
enabled(true): add missing model declarations.autoSessionHeader(true): add a missing x-opencode-session header for HTTP(S) opencode.ai and its subdomains.sessionHeaderValue(dsh-session): header value; existing headers are preserved.pollIntervalMs(30000): fallback rescan interval; 0 disables periodic rescans.
Writes use the public settings API, preserve namespace revisions, retry conflicts and run outside HMR transactions. Existing unrelated providers, models and headers are retained. Chinese and English follow the DSH language setting.
Validation
npm test covers declaration reconciliation, preserved route defaults, revision conflicts, HMR scheduling, configuration writes and localization.
История версий
- 0.5.029 нояб. 2026 г. · 19 KB