fix: gpt 5.6 context window (#6853)

This commit is contained in:
Aadish Verma
2026-07-20 03:22:22 -07:00
committed by GitHub
parent 84fb69c958
commit 35f12c8c72
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -2112,10 +2112,10 @@ async function generateModels() {
// OpenAI Codex (ChatGPT OAuth) models
// NOTE: These are not fetched from models.dev; we keep a small, explicit list to avoid aliases.
// Older model limits are based on observed server behavior; GPT-5.6 follows Codex's 372k catalog limit.
// Older model limits are based on observed server behavior; GPT-5.6 follows Codex's 272k catalog limit (formerly 372k).
const CODEX_BASE_URL = "https://chatgpt.com/backend-api";
const CODEX_CONTEXT = 272000;
const CODEX_GPT_56_CONTEXT = 372000;
const CODEX_GPT_56_CONTEXT = 272000;
const CODEX_SPARK_CONTEXT = 128000;
const CODEX_MAX_TOKENS = 128000;
const codexModels: Model<"openai-codex-responses">[] = [