Repository navigation
Configuration
English | 简体中文
This page lists every configuration key the plugin accepts, what each one changes, and how the settings card edits them. All keys live in one settings namespace, dsh-chatgpt-siwc.
This section explains the two layers a value can come from and when a change takes effect.
There are two places to set a value:
-
The settings card in the DSH web client. It writes your user layer for the
dsh-chatgpt-siwcnamespace. -
A profile patch (
cordis.patch.ymlin your DSH profile, or the home-level one). It sets the composition layer. The bundle's own patch sets onlyproviderandagentNameHint.
The card shows the effective value of each field (your user layer over the composition layer) and marks a field overridden when your user layer carries it. reset stages a clear, so the field goes back to the composition value when you save.
Every key is volatile: a committed change applies without restarting DSH. Every value is validated before credentials or routes are used; an invalid value is refused with INVALID_CONFIG and the previous configuration keeps serving.
This section is the reference table. The card label is what you see in the web client; — means the key has no card control and is set only in a profile patch.
| Key | Card label | Type and default | Effect |
|---|---|---|---|
provider |
Provider route | string, siwc-dsh-core
|
The LLM route name DSH selects this provider by. Renaming it swaps the route and its directory entry together; if the swap is refused, the previous route keeps serving and the error is logged. Must not be empty. |
agentNameHint |
App name at registration | string, DSH SIWC
|
The app name shown on OpenAI's consent page at first registration. Keep one name across installs. Must not be empty. |
reasoningEffort |
Default reasoning effort | one of none, minimal, low, medium, high, xhigh, max, ultra; unset |
Effort used when a call names none. If the selected model's catalog entry does not list it, the effort is left out and the model uses its own default. An effort chosen explicitly for a call is not softened: an unsupported one fails with UNSUPPORTED_REASONING_EFFORT. |
serviceTier |
Service tier |
default or priority; default
|
default sends no service_tier field at all. priority asks for the Fast tier, but only for models whose catalog lists priority and that have not been marked unsupported. See Fast tier. |
contextBudget |
Context budget (tokens) | positive integer; unset | A global cap on the context window reported to DSH. Never raises a model above its catalog contextWindow. |
includeHiddenModels |
Include hidden catalog models | boolean; false
|
Also lists catalog models marked visibility: "hide". The utility slugs codex-auto-review and gpt-reserve stay out unless they appear in modelOverrides. |
modelOverrides |
Per-model overrides (JSON) | object; unset | Per-model { "contextWindow": number, "efforts": string[] }. See Per-model overrides. |
apiBaseUrl |
API base URL | URL; unset (production https://api.openai.com/v1) |
Only https://api.openai.com on its default port, or http/https on 127.0.0.1, [::1] or localhost for local testing. No credentials, query, or fragment. Anything else is refused, because the plan token is attached to this origin. |
storePath |
Accounts file | path; unset ($DSH_HOME/chatgpt-siwc/accounts.json) |
Moves the accounts file. |
streamIdleTimeoutMs |
— | positive integer, milliseconds; 300000
|
The longest gap allowed between incoming bytes of a Responses stream, and the budget for waiting on the HTTP response headers. |
Language is not a configuration key. The card follows the DSH host locale; the CLI takes --lang zh|en (see CLI and doctor).
This section shows how the context window that DSH sees is computed, because three keys feed it.
For each model the plugin picks the first value that is set, then clamps it:
candidate = modelOverrides[model].contextWindow ?? contextBudget ?? catalog contextWindow
reported = min(candidate, catalog contextWindow) when the catalog discloses a window
reported = candidate when it does not
The catalog's max_context_window is stored as a recorded fact and shown in the card's catalog table, but it is never used to raise the window. When neither the catalog nor your settings give a window, the plugin reports none rather than guessing one.
This section explains the JSON field and its limits.
The card accepts a JSON object keyed by model id:
{
"gpt-6.2-astra": { "contextWindow": 200000 },
"codex-auto-review": { "efforts": ["low", "medium"] }
}Rules the card and the plugin enforce:
- Only
contextWindowandeffortsare accepted inside each entry; any other key makes the draft invalid and blocks the save. -
contextWindowmust be a positive whole number. It is still clamped to the catalog window. - Every entry in
effortsmust be one of the effort names in the table above. Override efforts are used only when the catalog entry lists no efforts of its own; when it does, the catalog wins. - Listing a utility slug here is what lets
includeHiddenModelsshow it. - Leaving the field empty clears it.
This section explains when service_tier: "priority" is actually sent, and what happens if OpenAI refuses it.
With serviceTier: "priority", a request carries service_tier: "priority" only when all three hold: the setting is priority, the model's cached catalog entry lists a priority service tier, and the plugin has not recorded priority as unsupported for that model. Otherwise the field is omitted, and the request body is byte-for-byte what default would send.
If OpenAI answers 400 and the error names service_tier, the plugin discards that response, records priority as unsupported for the model in the accounts file, removes the field, and retries the request once. That record survives catalog refreshes. A 401 is handled first (one forced token refresh), so the order is 401 refresh, then 400 tier fallback. A second 400 is not retried again.
The card labels Fast as "2x speed" and warns that it may use plan usage faster. Those words are the card's; the live probe recorded in Prompt cache has not shown the tier being applied.
Switching serviceTier in the middle of a conversation changes the request, so the first turn sent with the new setting starts on a cold cache.
This section covers how the form saves, so a refused save is not mistaken for a lost one.
- Edits are staged; nothing is written until you press Save. A draft that is not a valid value blocks the save and keeps your text.
- Empty text clears a field (for the select fields, empty means "use the default").
- After a save, the card reads back what DSH accepted. If a write did not land, the card says so and keeps the drafts.
- If DSH stores settings read-only, the card says so and you edit the profile configuration instead.
-
streamIdleTimeoutMshas no card control; set it in a profile patch.
To set a key without the card, add a row for the entry id dsh-chatgpt-siwc to your profile's cordis.patch.yml; DSH's profile documentation describes the patch syntax. DSH replaces a targeted row's whole config value rather than merging keys, so a patch row has to repeat every key you want to keep.
dsh-chatgpt-siwc
English
- Home
- Install
- Sign-in and accounts
- Configuration
- Models and catalog
- Prompt cache
- Route and compliance
- Architecture
- CLI and doctor
- Troubleshooting
- FAQ
- Changelog
- Contributing
简体中文