Honest note: gateways word a bad model ID very differently — 404, 400, or silently falling back to a default. We have not captured each one, so this page gives the order to check rather than 'the canonical error', which is usually copied from somewhere else.
Check in this order, do not skip
- Confirm the effective model ID from
dsh --dump-config. The file you edited and what it prints are often two different things. - Check spelling and case: gateway model IDs are usually case sensitive and carry version suffixes.
deepseek-chatandDeepSeek-Chatare not the same. - Check whether the gateway offers it: the same vendor can differ by region or plan. Query the gateway's model list.
- Only then suspect key and network. Reversed order wastes time on parts that never broke.
A cheap discriminator
Swap in an ID the gateway documents, change nothing else, rerun the same task:
Read package.json in the current directory and report only the name field.
Works with the known-good ID → the problem is the ID. Still fails → key, endpoint, or network. This halves the search space faster than testing one factor at a time.
What to record
- The verbatim error, not your paraphrase ('it said the model does not exist' drops the signal).
- The model ID, gateway address (mask as needed), and host version.
- What you did that fixed it.