feat: gpt-4.1 support (#1713)

This commit is contained in:
Charles Packer
2025-04-14 21:53:29 -07:00
committed by GitHub
parent 24312d4c6d
commit 99b8ebd79c

View File

@@ -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,