Skip to content
MyDSHMy DSH Field Notes
中文
Independently maintained; not affiliated with DeepSeek. No association with mydsh.dev or other MyDSH sites.

Home/Models, permissions & security/Model & routing

Wire an OpenAI-compatible gateway and prove the target model is live with a minimal tool call

Just switched gateway or model ID and unsure requests reach the intended model rather than staying on the default.

To be testedVersion and environmentChecked 2026-11-14
Host version
0.1.2-alpha.5
Method
steps only; not every gateway combination is measured here
Checked
2026-11-14

Copyable command

dsh --dump-config | grep -i -A3 model

Two usual failures when switching models: the config is ignored (still on the default) and it applies but the model ID does not exist (the error looks like a network fault). One minimal task separates them.

This page is a verification method, not a full gateway config sample. Config keys change between versions and copied snippets rot; the method does not.

Step one: see the effective model

dsh --dump-config | grep -i -A3 model

You are checking where the composed config points. --dump-config prints the composed result, so it shows what applies, not what you hoped would apply.

Step two: send a task that must call a tool

Read package.json in the current directory and tell me only the name field. Do not guess.

Why insist on a tool call: if the model is misconfigured the host may fall back to a default, and a plain chat task still answers, making you think it worked. Reading a file requires a tool, so failures surface.

Step three: tell three failures apart

SymptomMeaningNext
model not foundWrong ID, or the gateway does not offer itCheck the gateway's model list; mind case and version suffixes
401 / 403Bad key, or no access to that modelTry a known-good key or model to isolate the key
Answers, but not with the file contentTool call failed, or the instruction was ignoredRephrase more directly and see whether it still refuses to read

Step four: keep evidence

Save the model section from --dump-config and the verbatim error. Next time someone asks which model you ran, you paste config and text, not an impression.

What counts as working

Check every line. All of them pass or the job is not done.

  • The model ID in dump-config is the one you intended
  • The read-file task returns real content from the file
  • A deliberately wrong ID produces an error you can classify with the table

Where it fails

Symptom, cause, what to do — written in the order it actually happens.

SymptomCauseWhat to do
Config edited but dump-config still shows the old modelEdited the wrong layer: cordis.yml is overridden by bundlesEdit cordis.patch.yml, applied last; cordis.yml's own header says Edit cordis.patch.yml, not this file
Gateway reachable but no tool call happensThe model lacks tool support, or the instruction asks for nothing concreteUse a tool-capable model, or phrase the task as read-this-and-report-a-field

Sources

Verified means measured here. Compiled means every line carries a source.