shuang-ying/dsh-ThirdApi-ThinkingMode ↗★ 1
dsh-api-thinking
DSH profile bundle: reads each third-party model's thinking levels from its own endpoint and keeps llm-pi-ai's reasoningEfforts in sync 适合使用多方模型并需要自动同步和管理思考深度的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:shuang-ying/dsh-ThirdApi-ThinkingModeREADME
Read the full README ↗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 want | How |
|---|---|
| Get thinking levels on a model | Configure the route and its models in Settings → Models and give it a moment |
| Add a new API | Add it in the model page; the levels follow on their own |
| Narrow the scope | Set routes to the route names you care about; the default covers every OpenAI-compatible route |
| Change the sweep cadence | Set intervalMs; 0 means "sweep once after load, then stop" |
| Find out why nothing happened | Read 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: ''
| Option | Default | Meaning |
|---|---|---|
entryId | llm-pi-ai | The profile row to read and write |
routes | [] | Route names to manage; [] means every OpenAI-compatible route |
intervalMs | 120000 | Re-sweep interval in milliseconds; 0 sweeps once after load |
startDelayMs | 3000 | Delay before the first sweep, to let the profile finish loading |
timeoutMs | 15000 | Per-endpoint model-listing timeout |
includeOff | false | Expose off as a selectable level (see the caveat above) |
fixedEffortAsLevel | true | Show a pinned effort as the single level |
log | true | Log 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-thinkingword for word, orapplyEntryPatchesskips it silently.