shuang-ying/dsh-ThirdApi-ThinkingMode ↗★ 1

dsh-api-thinking

自动同步第三方模型的思考深度与推理配置 适合使用多方模型并需要自动同步和管理思考深度的用户。

包名
dsh-api-thinking
兼容性
待验证
Cordis 依赖范围
*
版本
0.1.2
许可证
MIT
最近更新
2026年10月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:shuang-ying/dsh-ThirdApi-ThinkingMode

Usage

It works as soon as it is installed — there is no switch to turn on. The plugin walks every route under the llm-pi-ai row:

What you wantHow
Get thinking levels on a modelConfigure the route and its models in Settings → Models and give it a moment
Add a new APIAdd it in the model page; the levels follow on their own
Narrow the scopeSet routes to the route names you care about; the default covers every OpenAI-compatible route
Change the sweep cadenceSet intervalMs; 0 means "sweep once after load, then stop"
Find out why nothing happenedRead the status document — see Troubleshooting

Configuration

- insert:
    - id: api-thinking
      name: dsh-api-thinking
      config:
        entryId: llm-pi-ai
        routes: []
        intervalMs: 120000
        startDelayMs: 3000
        timeoutMs: 15000
        includeOff: false
        fixedEffortAsLevel: true
        log: true
        statusFile: ''
OptionDefaultMeaning
entryIdllm-pi-aiThe profile row to read and write
routes[]Route names to manage; [] means every OpenAI-compatible route
intervalMs120000Re-sweep interval in milliseconds; 0 sweeps once after load
startDelayMs3000Delay before the first sweep, to let the profile finish loading
timeoutMs15000Per-endpoint model-listing timeout
includeOfffalseExpose off as a selectable level (see the caveat above)
fixedEffortAsLeveltrueShow a pinned effort as the single level
logtrueLog every change and every skipped route
statusFile''Status document path; '' means $DSH_HOME/api-thinking.status.json, false disables it

Overriding the bundle row: an override in your profile patch must repeat name: dsh-api-thinking word for word, or applyEntryPatches skips it silently.