Models: fix codex follow-up CI issues

This commit is contained in:
Kros Dai
2026-03-08 09:39:40 -04:00
committed by Peter Steinberger
parent b77a115f67
commit c7fddd95c3
2 changed files with 4 additions and 1 deletions

View File

@@ -135,6 +135,7 @@ describe("openai-codex implicit provider", () => {
mode: "merge",
providers: {
"openai-codex": {
baseUrl: "",
api: "openai-codex-responses",
models: [],
},

View File

@@ -150,7 +150,9 @@ async function resolveProvidersForModelsJson(params: {
const explicitProviders = cfg.models?.providers ?? {};
const implicitProviders = await resolveImplicitProviders({ agentDir, explicitProviders });
const authoritativeImplicitBaseUrlProviders = new Set<string>(
[...AUTHORITATIVE_IMPLICIT_BASEURL_PROVIDERS].filter((key) => Boolean(implicitProviders[key])),
[...AUTHORITATIVE_IMPLICIT_BASEURL_PROVIDERS].filter((key) =>
Boolean(implicitProviders?.[key]),
),
);
const providers: Record<string, ProviderConfig> = mergeProviders({
implicit: implicitProviders,