Files
deepseek-harness/scripts
LegGasai 0ab4c8305c refactor(llm): take the API key check from dsh-credentials
`dsh-llm` exported `normalizeApiKey` and `assertUsableApiKey` for the adapters that read a key through a credential reference. The DeepSeek routes now get their key from `ctx.deepseekAuth`, which checks it with the definition `dsh-credentials` owns, so `llm-pi-ai` was the only caller left. It now uses `normalizeApiKey` and `unusableApiKeyMessage` from `dsh-credentials` and raises the same `INVALID_CREDENTIAL` failure with the same text.

`normalizeApiKey` and `assertUsableApiKey` are removed from `dsh-llm`, so the check has one Host definition. `dsh-llm` does not import it from `dsh-credentials` instead, because the dependency gate accepts that runtime import only with a reviewed policy exception.
2026-11-15 17:02:44 +08:00
..
…
…