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

@@ -2,6 +2,10 @@
## [Unreleased]
### Fixed
- Fixed GPT-5.5 generated context window metadata to use the observed 272k limit.
## [0.70.0] - 2026-04-23
### Added

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,
},
{

View File

@@ -2505,8 +2505,8 @@ export const MODELS = {
cacheRead: 0.5,
cacheWrite: 0,
},
contextWindow: 1050000,
maxTokens: 130000,
contextWindow: 272000,
maxTokens: 128000,
} satisfies Model<"azure-openai-responses">,
"o1": {
id: "o1",
@@ -6264,8 +6264,8 @@ export const MODELS = {
cacheRead: 0.5,
cacheWrite: 0,
},
contextWindow: 1050000,
maxTokens: 130000,
contextWindow: 272000,
maxTokens: 128000,
} satisfies Model<"openai-responses">,
"o1": {
id: "o1",
@@ -6572,7 +6572,7 @@ export const MODELS = {
cacheRead: 0.5,
cacheWrite: 0,
},
contextWindow: 400000,
contextWindow: 272000,
maxTokens: 128000,
} satisfies Model<"openai-codex-responses">,
},