From 99b8ebd79c34a09e6789e12a5d0288fd3920ff9a Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Mon, 14 Apr 2025 21:53:29 -0700 Subject: [PATCH] feat: gpt-4.1 support (#1713) --- letta/constants.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/letta/constants.py b/letta/constants.py index d21c8017..84a63d74 100644 --- a/letta/constants.py +++ b/letta/constants.py @@ -110,6 +110,12 @@ LLM_MAX_TOKENS = { "deepseek-chat": 64000, "deepseek-reasoner": 64000, ## OpenAI models: https://platform.openai.com/docs/models/overview + "gpt-4.1": 1047576, + "gpt-4.1-2025-04-14": 1047576, + "gpt-4.1-mini": 1047576, + "gpt-4.1-mini-2025-04-14": 1047576, + "gpt-4.1-nano": 1047576, + "gpt-4.1-nano-2025-04-14": 1047576, # gpt-4.5-preview "gpt-4.5-preview": 128000, "gpt-4.5-preview-2025-02-27": 128000,