fix(ai): correct gpt-5.5 context metadata

This commit is contained in:
Mario Zechner
2026-04-24 10:42:44 +02:00
parent 0fce64d425
commit c96c2fcd1e
3 changed files with 11 additions and 7 deletions

View File

@@ -772,7 +772,7 @@ async function generateModels() {
candidate.contextWindow = 272000;
candidate.maxTokens = 128000;
}
if (candidate.provider === "openai" && candidate.id === "gpt-5.4") {
if (candidate.provider === "openai" && (candidate.id === "gpt-5.4" || candidate.id === "gpt-5.5")) {
candidate.contextWindow = 272000;
candidate.maxTokens = 128000;
}
@@ -1134,7 +1134,7 @@ async function generateModels() {
reasoning: true,
input: ["text", "image"],
cost: { input: 5, output: 30, cacheRead: 0.5, cacheWrite: 0 },
contextWindow: 400000,
contextWindow: CODEX_CONTEXT,
maxTokens: CODEX_MAX_TOKENS,
},
{