Revert "feat(ai): add gpt-5.2-codex to OpenAI provider (#730)"

This reverts commit 5a795b9857.
This commit is contained in:
Mario Zechner 2026-01-14 22:22:55 +01:00
parent 5a795b9857
commit 0a7537bf86
4 changed files with 26 additions and 87 deletions

View file

@ -689,26 +689,6 @@ async function generateModels() {
});
}
if (!allModels.some(m => m.provider === "openai" && m.id === "gpt-5.2-codex")) {
allModels.push({
id: "gpt-5.2-codex",
name: "GPT-5.2 Codex",
api: "openai-responses",
baseUrl: "https://api.openai.com/v1",
provider: "openai",
reasoning: true,
input: ["text", "image"],
cost: {
input: 1.75,
output: 14,
cacheRead: 0.175,
cacheWrite: 0,
},
contextWindow: 400000,
maxTokens: 128000,
});
}
// 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.