openai-codex: add gpt-5.3-codex-spark forward-compat model (#15174)

Merged via maintainer flow after rebase + local gates.

Prepared head SHA: 6cac87cbf9

Co-authored-by: loiie45e <15420100+loiie45e@users.noreply.github.com>
Co-authored-by: mbelinky <2406260+mbelinky@users.noreply.github.com>
This commit is contained in:
loiie45e
2026-02-13 23:21:07 +08:00
committed by GitHub
parent 96318641d8
commit 2e04630105
4 changed files with 111 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ import type { RuntimeEnv } from "../../runtime.js";
import type { ModelRow } from "./list.types.js";
import { ensureAuthProfileStore } from "../../agents/auth-profiles.js";
import { parseModelRef } from "../../agents/model-selection.js";
import { resolveModel } from "../../agents/pi-embedded-runner/model.js";
import { loadConfig } from "../../config/config.js";
import { resolveConfiguredEntries } from "./list.configured.js";
import { loadModelRegistry, toModelRow } from "./list.registry.js";
@@ -99,7 +100,13 @@ export async function modelsListCommand(
if (providerFilter && entry.ref.provider.toLowerCase() !== providerFilter) {
continue;
}
const model = modelByKey.get(entry.key);
let model = modelByKey.get(entry.key);
if (!model) {
const resolved = resolveModel(entry.ref.provider, entry.ref.model, undefined, cfg);
if (resolved.model && !resolved.error) {
model = resolved.model;
}
}
if (opts.local && model && !isLocalBaseUrl(model.baseUrl)) {
continue;
}