Skip to content

A programming framework for agentic AI

gpt40 tokens update (#2717)

HRUSHIKESH DOKALA11d9336e3dd4
diff --git a/autogen/token_count_utils.py b/autogen/token_count_utils.py
index 589d7b404..b71dbc428 100644
--- a/autogen/token_count_utils.py
+++ b/autogen/token_count_utils.py
@@ -34,6 +34,8 @@ def get_max_token_limit(model: str = "gpt-3.5-turbo-0613") -> int:
"gpt-4-0125-preview": 128000,
"gpt-4-turbo-preview": 128000,
"gpt-4-vision-preview": 128000,
+ "gpt-4o": 128000,
+ "gpt-4o-2024-05-13": 128000,
}
return max_token_limit[model]