You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
])("suggests running doctor for openai-codex from $name",async({ cfg })=>{
2861
+
constresult=awaitresolveModelAsync(
2862
+
"openai-codex",
2863
+
"gpt-5.4",
2864
+
"/tmp/agent",
2865
+
cfgasunknownasOpenClawConfig,
2866
+
{
2867
+
runtimeHooks: createRuntimeHooks(),
2868
+
skipAgentDiscovery: true,
2869
+
},
2870
+
);
2850
2871
2851
2872
expect(result.error).toBe(
2852
-
'Unknown model: openai-codex/gpt-5.4. Found agents.defaults.models["openai-codex/gpt-5.4"], but "openai-codex" is a legacy provider ID. Run `openclaw doctor --fix` to migrate to the current OpenAI provider format. If the provider has no authenticated profile, run `openclaw models status` to check provider auth and re-authenticate if needed. See https://docs.openclaw.ai/concepts/model-providers.',
2873
+
'Unknown model: openai-codex/gpt-5.4. "openai-codex" is a legacy provider ID. Run `openclaw doctor --fix` to migrate legacy model and provider config to the current OpenAI format. If the provider has no authenticated profile, run `openclaw models status` to check provider auth and re-authenticate if needed. See https://docs.openclaw.ai/concepts/model-providers.',
return`"openai-codex" is a legacy provider ID. Run \`openclaw doctor --fix\` to migrate legacy model and provider config to the current OpenAI format. If the provider has no authenticated profile, run \`openclaw models status\` to check provider auth and re-authenticate if needed. See https://docs.openclaw.ai/concepts/model-providers.`;
@@ -1929,15 +1935,6 @@ function buildMissingProviderModelRegistrationHint(params: {
1929
1935
if(agentRuntimeId){
1930
1936
return`Found agents.defaults.models["${agentModelKey}"] bound to the "${agentRuntimeId}" agent runtime. Models served by an agent runtime come from that runtime and its linked account, not from models.providers["${params.provider}"].models[] — registering it there will not make it usable. Confirm "${params.modelId}" is still offered by the "${agentRuntimeId}" runtime and switch agents.defaults.model.primary to a currently available model (run \`openclaw models list --provider ${params.provider}\` to list them). See https://docs.openclaw.ai/concepts/model-providers.`;
1931
1937
}
1932
-
// Legacy openai-codex is folded into the "openai" provider. Its models
1933
-
// register through the OpenAI provider at startup, so a missing-model
1934
-
// error here is almost always a legacy config reference or a missing
1935
-
// auth profile. The correct fix is to migrate the config via doctor
1936
-
// or re-authenticate the provider, not to add a models.providers[]
1937
-
// overlay (which the validator rejects without baseUrl).
return`Found agents.defaults.models["${agentModelKey}"], but "openai-codex" is a legacy provider ID. Run \`openclaw doctor --fix\` to migrate to the current OpenAI provider format. If the provider has no authenticated profile, run \`openclaw models status\` to check provider auth and re-authenticate if needed. See https://docs.openclaw.ai/concepts/model-providers.`;
0 commit comments