Add support for OpenAI's o4-mini model

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-05-05 05:18:40 +00:00
parent 17474a3a0c
commit 018fbd044d
4 changed files with 59 additions and 9 deletions

View File

@@ -87,6 +87,7 @@ LLM_CONTEXT_WINDOW_SIZES = {
"gpt-4.1-nano-2025-04-14": 1047576,
"o1-preview": 128000,
"o1-mini": 128000,
"o4-mini": 200000, # Based on o3-mini specifications
"o3-mini": 200000, # Based on official o3-mini specifications
# gemini
"gemini-2.0-flash": 1048576,

View File

@@ -40,6 +40,7 @@ OPENAI_BIGGER_MODELS = [
"o1-mini",
"o1",
"o3",
"o4-mini",
"o3-mini",
]