Skip to content

Commit 34d8c4b

Browse files
committed
fix: use correct --provider flag syntax in auth hint message
1 parent ea3dd1b commit 34d8c4b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/agents/embedded-agent-runner/model.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2825,7 +2825,7 @@ describe("resolveModel", () => {
28252825
});
28262826

28272827
expect(result.error).toBe(
2828-
'Unknown model: openai-codex/gpt-5.4. Found agents.defaults.models["openai-codex/gpt-5.4"], but "openai-codex" is a legacy alias that has been folded into the openai provider. This provider requires OAuth authentication — run `openclaw models auth login openai` to sign in, or run `openclaw doctor --fix` to migrate legacy config references. See https://docs.openclaw.ai/concepts/model-providers.',
2828+
'Unknown model: openai-codex/gpt-5.4. Found agents.defaults.models["openai-codex/gpt-5.4"], but "openai-codex" is a legacy alias that has been folded into the openai provider. This provider requires OAuth authentication — run `openclaw models auth login --provider openai` to sign in, or run `openclaw doctor --fix` to migrate legacy config references. See https://docs.openclaw.ai/concepts/model-providers.',
28292829
);
28302830
});
28312831

src/agents/embedded-agent-runner/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1935,7 +1935,7 @@ function buildMissingProviderModelRegistrationHint(params: {
19351935
// at models.providers[] is actively harmful: the config validator rejects the
19361936
// overlay without baseUrl, creating contradictory guidance (#100066).
19371937
if (normalizeProviderId(params.provider) === "openai-codex") {
1938-
return `Found agents.defaults.models["${agentModelKey}"], but "${params.provider}" is a legacy alias that has been folded into the openai provider. This provider requires OAuth authentication — run \`openclaw models auth login openai\` to sign in, or run \`openclaw doctor --fix\` to migrate legacy config references. See https://docs.openclaw.ai/concepts/model-providers.`;
1938+
return `Found agents.defaults.models["${agentModelKey}"], but "${params.provider}" is a legacy alias that has been folded into the openai provider. This provider requires OAuth authentication — run \`openclaw models auth login --provider openai\` to sign in, or run \`openclaw doctor --fix\` to migrate legacy config references. See https://docs.openclaw.ai/concepts/model-providers.`;
19391939
}
19401940
const providerConfig = findNormalizedProviderValue(
19411941
params.cfg?.models?.providers,

0 commit comments

Comments
 (0)