Skip to content

A programming framework for agentic AI

Update gpt-4o model version and add new model details (#5056)

Hankyeol Kyungacb9117513bc
diff --git a/python/packages/autogen-ext/src/autogen_ext/models/openai/_model_info.py b/python/packages/autogen-ext/src/autogen_ext/models/openai/_model_info.py
index d1c2bdf42..82f99403a 100644
--- a/python/packages/autogen-ext/src/autogen_ext/models/openai/_model_info.py
+++ b/python/packages/autogen-ext/src/autogen_ext/models/openai/_model_info.py
@@ -8,7 +8,7 @@ _MODEL_POINTERS = {
"o1": "o1-2024-12-17",
"o1-preview": "o1-preview-2024-09-12",
"o1-mini": "o1-mini-2024-09-12",
- "gpt-4o": "gpt-4o-2024-08-06",
+ "gpt-4o": "gpt-4o-2024-11-20",
"gpt-4o-mini": "gpt-4o-mini-2024-07-18",
"gpt-4-turbo": "gpt-4-turbo-2024-04-09",
"gpt-4-turbo-preview": "gpt-4-0125-preview",
@@ -37,6 +37,12 @@ _MODEL_INFO: Dict[str, ModelInfo] = {
"json_output": False,
"family": ModelFamily.O1,
},
+ "gpt-4o-2024-11-20": {
+ "vision": True,
+ "function_calling": True,
+ "json_output": True,
+ "family": ModelFamily.GPT_4O,
+ },
"gpt-4o-2024-08-06": {
"vision": True,
"function_calling": True,
@@ -127,6 +133,7 @@ _MODEL_TOKEN_LIMITS: Dict[str, int] = {
"o1-2024-12-17": 200000,
"o1-preview-2024-09-12": 128000,
"o1-mini-2024-09-12": 128000,
+ "gpt-4o-2024-11-20": 128000,
"gpt-4o-2024-08-06": 128000,
"gpt-4o-2024-05-13": 128000,
"gpt-4o-mini-2024-07-18": 128000,