mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 19:24:59 +00:00
Models: fix codex follow-up CI issues
This commit is contained in:
committed by
Peter Steinberger
parent
ec75643a09
commit
e9d51d874b
@@ -135,6 +135,7 @@ describe("openai-codex implicit provider", () => {
|
|||||||
mode: "merge",
|
mode: "merge",
|
||||||
providers: {
|
providers: {
|
||||||
"openai-codex": {
|
"openai-codex": {
|
||||||
|
baseUrl: "",
|
||||||
api: "openai-codex-responses",
|
api: "openai-codex-responses",
|
||||||
models: [],
|
models: [],
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -150,7 +150,9 @@ async function resolveProvidersForModelsJson(params: {
|
|||||||
const explicitProviders = cfg.models?.providers ?? {};
|
const explicitProviders = cfg.models?.providers ?? {};
|
||||||
const implicitProviders = await resolveImplicitProviders({ agentDir, explicitProviders });
|
const implicitProviders = await resolveImplicitProviders({ agentDir, explicitProviders });
|
||||||
const authoritativeImplicitBaseUrlProviders = new Set<string>(
|
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({
|
const providers: Record<string, ProviderConfig> = mergeProviders({
|
||||||
implicit: implicitProviders,
|
implicit: implicitProviders,
|
||||||
|
|||||||
Reference in New Issue
Block a user