Skip to content

Commit 894bec7

Browse files
hangfeicopybara-github
authored andcommitted
chore: Update default and example Gemini models to new versions
Changes references from `gemini-1.5-flash` and `gemini-1.5-pro` to `gemini-2.5-flash` and `gemini-2.5-pro` in docstrings, default values, sample agents, and tests. PiperOrigin-RevId: 805536434
1 parent 3c433b7 commit 894bec7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

contributing/samples/bigtable/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
# The variable name `root_agent` determines what your root agent is for the
6363
# debug CLI
6464
root_agent = LlmAgent(
65-
model="gemini-1.5-flash",
65+
model="gemini-2.5-flash",
6666
name="bigtable_agent",
6767
description=(
6868
"Agent to answer questions about Bigtable database tables and"

src/google/adk/models/base_llm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class BaseLlm(BaseModel):
3232
"""The BaseLLM class.
3333
3434
Attributes:
35-
model: The name of the LLM, e.g. gemini-1.5-flash or gemini-1.5-flash-001.
35+
model: The name of the LLM, e.g. gemini-2.5-flash or gemini-2.5-pro.
3636
"""
3737

3838
model_config = ConfigDict(
@@ -42,7 +42,7 @@ class BaseLlm(BaseModel):
4242
"""The pydantic model config."""
4343

4444
model: str
45-
"""The name of the LLM, e.g. gemini-1.5-flash or gemini-1.5-flash-001."""
45+
"""The name of the LLM, e.g. gemini-2.5-flash or gemini-2.5-pro."""
4646

4747
@classmethod
4848
def supported_models(cls) -> list[str]:

src/google/adk/models/google_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Gemini(BaseLlm):
5858
model: The name of the Gemini model.
5959
"""
6060

61-
model: str = 'gemini-1.5-flash'
61+
model: str = 'gemini-2.5-flash'
6262

6363
retry_options: Optional[types.HttpRetryOptions] = None
6464
"""Allow Gemini to retry failed responses.

src/google/adk/models/lite_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def _is_litellm_gemini_model(model_string: str) -> bool:
683683
684684
Args:
685685
model_string: A LiteLLM model string (e.g., "gemini/gemini-2.5-pro" or
686-
"vertex_ai/gemini-1.5-flash")
686+
"vertex_ai/gemini-2.5-flash")
687687
688688
Returns:
689689
True if it's a Gemini model accessed via LiteLLM, False otherwise

0 commit comments

Comments
 (0)