From 2233d141b1396cedd51cf65af90633828ccc943a Mon Sep 17 00:00:00 2001 From: Ari Webb Date: Wed, 14 Jan 2026 11:52:00 -0800 Subject: [PATCH] feat: add codex 5.2 context window (#8704) --- letta/constants.py | 1 + tests/configs/llm_model_configs/openai-gpt-5.2-codex.json | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 tests/configs/llm_model_configs/openai-gpt-5.2-codex.json diff --git a/letta/constants.py b/letta/constants.py index 2eb39d09..9d9c94fb 100644 --- a/letta/constants.py +++ b/letta/constants.py @@ -274,6 +274,7 @@ LLM_MAX_CONTEXT_WINDOW = { "gpt-5.2-2025-12-11": 272000, "gpt-5.2-pro": 272000, "gpt-5.2-pro-2025-12-11": 272000, + "gpt-5.2-codex": 272000, # reasoners "o1": 200000, # "o1-pro": 200000, # responses API only diff --git a/tests/configs/llm_model_configs/openai-gpt-5.2-codex.json b/tests/configs/llm_model_configs/openai-gpt-5.2-codex.json new file mode 100644 index 00000000..c8a00617 --- /dev/null +++ b/tests/configs/llm_model_configs/openai-gpt-5.2-codex.json @@ -0,0 +1,8 @@ +{ + "context_window": 32000, + "model": "gpt-5.2-codex", + "model_endpoint_type": "openai", + "model_endpoint": "https://api.openai.com/v1", + "model_wrapper": null, + "reasoning_effort": "low" +}