Skip to content

A programming framework for agentic AI

Add support for Gemini 2.5 flash stable (#6692)

David Schmidt3436ec2ca199
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.py
index 764131527..b04389db7 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
@@ -67,7 +67,7 @@ class ModelFamily:
"gemini-1.5-pro",
"gemini-2.0-flash",
"gemini-2.5-pro",
- "gemini-2.5-flash"
+ "gemini-2.5-flash",
# anthropic_models
"claude-3-haiku",
"claude-3-sonnet",
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 433fbbc2d..6306fba94 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
@@ -310,7 +310,7 @@ _MODEL_INFO: Dict[str, ModelInfo] = {
"structured_output": True,
"multiple_system_messages": False,
},
- "gemini-2.5-flash-preview-05-20": {
+ "gemini-2.5-flash": {
"vision": True,
"function_calling": True,
"json_output": True,
@@ -448,7 +448,7 @@ _MODEL_TOKEN_LIMITS: Dict[str, int] = {
"gemini-2.0-flash": 1048576,
"gemini-2.0-flash-lite-preview-02-05": 1048576,
"gemini-2.5-pro-preview-03-25": 2097152,
- "gemini-2.5-flash-preview-05-20": 1048576,
+ "gemini-2.5-flash": 1048576,
"claude-3-haiku-20240307": 50000,
"claude-3-sonnet-20240229": 200000,
"claude-3-opus-20240229": 200000,