feat(ai): add github-copilot gpt-5.3-codex fallback closes #1853

This commit is contained in:
Mario Zechner 2026-03-05 21:47:52 +01:00
parent 8fc2b76827
commit 8f2af2ae7e
3 changed files with 145 additions and 48 deletions

View file

@ -844,6 +844,20 @@ async function generateModels() {
});
}
// Add missing GitHub Copilot GPT-5.3 models until models.dev includes them.
const copilotBaseModel = allModels.find(
(m) => m.provider === "github-copilot" && m.id === "gpt-5.2-codex",
);
if (copilotBaseModel) {
if (!allModels.some((m) => m.provider === "github-copilot" && m.id === "gpt-5.3-codex")) {
allModels.push({
...copilotBaseModel,
id: "gpt-5.3-codex",
name: "GPT-5.3 Codex",
});
}
}
// OpenAI Codex (ChatGPT OAuth) models
// NOTE: These are not fetched from models.dev; we keep a small, explicit list to avoid aliases.
// Context window is based on observed server limits (400s above ~272k), not marketing numbers.