A programming framework for agentic AI
Added new models to token_count_utils (#1511)
afourneyb0c1f8d88def
diff --git a/autogen/oai/openai_utils.py b/autogen/oai/openai_utils.pyindex e900e2143..0407aa1ca 100644--- a/autogen/oai/openai_utils.py+++ b/autogen/oai/openai_utils.py@@ -46,6 +46,8 @@ OAI_PRICE1K = {"gpt-3.5-turbo-1106": (0.001, 0.002),"gpt-35-turbo-1106": (0.001, 0.002),"gpt-4-1106-preview": (0.01, 0.03),+ "gpt-4-0125-preview": (0.01, 0.03),+ "gpt-4-turbo-preview": (0.01, 0.03),"gpt-4-1106-vision-preview": (0.01, 0.03), # TODO: support vision pricing of images}diff --git a/autogen/token_count_utils.py b/autogen/token_count_utils.pyindex 18e4d9e4e..1b1b2f199 100644--- a/autogen/token_count_utils.py+++ b/autogen/token_count_utils.py@@ -28,6 +28,8 @@ def get_max_token_limit(model="gpt-3.5-turbo-0613"):"gpt-4-0613": 8192,"gpt-4-32k-0613": 32768,"gpt-4-1106-preview": 128000,+ "gpt-4-0125-preview": 128000,+ "gpt-4-turbo-preview": 128000,"gpt-4-vision-preview": 128000,}return max_token_limit[model]