mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 17:52:31 +03:00
fix(providers): correct Codex GPT-5.6 context limits (#9432)
Merge-train validated (tip 6ce4effef8). Vitest failures confirmed as base-red (#9679).
This commit is contained in:
1
changelog.d/fixes/9431-codex-gpt56-context.md
Normal file
1
changelog.d/fixes/9431-codex-gpt56-context.md
Normal file
@@ -0,0 +1 @@
|
||||
- **fix(providers):** Codex GPT-5.6 model metadata reports the 1M context window and 922K input limit ([#9431](https://github.com/diegosouzapw/OmniRoute/issues/9431)).
|
||||
@@ -271,16 +271,14 @@ export const GPT_5_6_API_CAPABILITIES = {
|
||||
maxOutputTokens: 128000,
|
||||
} as const;
|
||||
|
||||
// Codex's live catalog reports a 272K input context window for GPT-5.6.
|
||||
// Keep the input and output limits explicit for catalog consumers that expose them separately.
|
||||
export const GPT_5_6_CODEX_CAPABILITIES = {
|
||||
targetFormat: "openai-responses",
|
||||
toolCalling: true,
|
||||
supportsReasoning: true,
|
||||
supportsVision: true,
|
||||
supportsXHighEffort: true,
|
||||
contextLength: 272000,
|
||||
maxInputTokens: 272000,
|
||||
contextLength: 1050000,
|
||||
maxInputTokens: 922000,
|
||||
maxOutputTokens: 128000,
|
||||
} as const;
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ test("Codex catalog exposes the GPT-5.6 lineup in configured priority order", ()
|
||||
for (const modelId of expectedIds) {
|
||||
const model = models.find((entry) => entry.id === modelId);
|
||||
assert.ok(model, `codex must expose ${modelId}`);
|
||||
assert.equal(model.contextLength, 272000);
|
||||
assert.equal(model.maxInputTokens, 272000);
|
||||
assert.equal(model.contextLength, 1050000);
|
||||
assert.equal(model.maxInputTokens, 922000);
|
||||
assert.equal(model.maxOutputTokens, 128000);
|
||||
assert.equal(model.targetFormat, "openai-responses");
|
||||
assert.equal(model.toolCalling, true);
|
||||
|
||||
Reference in New Issue
Block a user