A programming framework for agentic AI
added: gemini 2.5 pro preview (#6226)
Ardent Illuminab1ae4ac79e5b
diff --git a/python/packages/autogen-core/src/autogen_core/models/_model_client.py b/python/packages/autogen-core/src/autogen_core/models/_model_client.pyindex 2a3218958..8bce9b64f 100644--- a/python/packages/autogen-core/src/autogen_core/models/_model_client.py+++ b/python/packages/autogen-core/src/autogen_core/models/_model_client.py@@ -28,6 +28,7 @@ class ModelFamily:GEMINI_1_5_FLASH = "gemini-1.5-flash"GEMINI_1_5_PRO = "gemini-1.5-pro"GEMINI_2_0_FLASH = "gemini-2.0-flash"+ GEMINI_2_5_PRO = "gemini-2.5-pro"CLAUDE_3_HAIKU = "claude-3-haiku"CLAUDE_3_SONNET = "claude-3-sonnet"CLAUDE_3_OPUS = "claude-3-opus"@@ -47,6 +48,7 @@ class ModelFamily:"gemini-1.5-flash","gemini-1.5-pro","gemini-2.0-flash",+ "gemini-2.5-pro","claude-3-haiku","claude-3-sonnet","claude-3-opus",@@ -76,6 +78,7 @@ class ModelFamily:ModelFamily.GEMINI_1_5_FLASH,ModelFamily.GEMINI_1_5_PRO,ModelFamily.GEMINI_2_0_FLASH,+ ModelFamily.GEMINI_2_5_PRO,)@staticmethoddiff --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.pyindex fb9ef60ca..3b2da05a9 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@@ -209,6 +209,13 @@ _MODEL_INFO: Dict[str, ModelInfo] = {"family": ModelFamily.GEMINI_2_0_FLASH,"structured_output": True,},+ "gemini-2.5-pro-preview-03-25": {+ "vision": True,+ "function_calling": True,+ "json_output": True,+ "family": ModelFamily.GEMINI_2_5_PRO,+ "structured_output": True,+ },"claude-3-haiku-20240307": {"vision": True,"function_calling": True,@@ -279,6 +286,7 @@ _MODEL_TOKEN_LIMITS: Dict[str, int] = {"gemini-1.5-pro": 2097152,"gemini-2.0-flash": 1048576,"gemini-2.0-flash-lite-preview-02-05": 1048576,+ "gemini-2.5-pro-preview-03-25": 2097152,"claude-3-haiku-20240307": 50000,"claude-3-sonnet-20240229": 40000,"claude-3-opus-20240229": 20000,