Gemini-2.0 model is still used in integration tests, but deprecated
🔴 Required Information
Describe the Bug: In many places of the codebase, the gemini-2.0-flash model is still used, however it's deprecated. This leads to errors when running integration tests for exemple.
Steps to Reproduce:
In the adk-python repo
2. Run uv sync --all-extras to roperly setup the repo
3. Run pytest tests/integration/test_single_agent.py
4. Find error :
{'error': {'code': 404, 'message': 'This model models/gemini-2.0-flash-001 is no longer available to new users. Please update your code to use a newer model for the latest features and improvements.', 'status': 'NOT_FOUND'}}.
Expected Behavior: The test should simply runs and success.
Environment Details:
- ADK Library Version: Version: 1.26.0
- Desktop OS: macOS
- Python Version: Python 3.13.3
Model Information:
- Are you using LiteLLM: No
- Which model is being used: x
🟡 Optional Information
N/A
How often has this issue occurred?:
- Always (100%)
@morganroux Five integration fixture agents (hello_world_agent, hello_world_agent_async, trip_planner_agent, ecommerce_customer_service_agent, home_automation_agent) hardcode gemini-2.0-flash-001 and test_vertex_ai_search_grounding_streaming.py uses the unversioned gemini-2.0-flash — both are unavailable to new users.
The fix is a straight replacement to gemini-2.5-flash in all six files, same model the bigquery_agent fixture already uses.
While at it, the same stale string in mcp_toolset.py:84, common_configs.py:121, and instructions_utils.py:54 (docstring examples) should be updated too.
Thank you @surajksharma07, that was exactly my thoughts, I'd be happy to create a PR to fix this.
@morganroux For a complete PR, the 6 integration files need gemini-2.5-flash: the five fixture agents (hello_world_agent/agent.py,hello_world_agent_async/agent.py, trip_planner_agent/agent.py, ecommerce_customer_service_agent/agent.py, home_automation_agent/agent.py) and test_vertex_ai_search_grounding_streaming.py:47.
If you want to sweep the docstring examples at the same time, mcp_toolset.py:84, common_configs.py:121, and instructions_utils.py:54 have the same stale string but those aren't runtime-breaking.
OK, I'll take care of this during the week
PR ready @surajksharma07
@ankursharmas Please have a look into it once.