Skip to content

Commit 4810ddc

Browse files
GWealecopybara-github
authored andcommitted
chore: update default model to gemini-3.5-flash
gemini-3-flash-preview never reached GA; the Gemini 3 Flash line went stable as gemini-3.5-flash, so move the built-in default off the preview alias. Co-authored-by: George Weale <gweale@google.com> PiperOrigin-RevId: 930895010
1 parent 5a129a4 commit 4810ddc

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/google/adk/agents/config_schemas/AgentConfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3159,7 +3159,7 @@
31593159
}
31603160
],
31613161
"default": null,
3162-
"description": "Optional. LlmAgent.model. Provide a model name string (e.g. \"gemini-3-flash-preview\"). If not set, the model will be inherited from the ancestor or fall back to the system default (gemini-3-flash-preview unless overridden via LlmAgent.set_default_model). To construct a model instance from code, use model_code.",
3162+
"description": "Optional. LlmAgent.model. Provide a model name string (e.g. \"gemini-3.5-flash\"). If not set, the model will be inherited from the ancestor or fall back to the system default (gemini-3.5-flash unless overridden via LlmAgent.set_default_model). To construct a model instance from code, use model_code.",
31633163
"title": "Model"
31643164
},
31653165
"model_code": {

src/google/adk/agents/llm_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ async def _convert_tool_union_to_tools(
198198
class LlmAgent(BaseAgent, abc.ABC):
199199
"""LLM-based Agent."""
200200

201-
DEFAULT_MODEL: ClassVar[str] = 'gemini-3-flash-preview'
201+
DEFAULT_MODEL: ClassVar[str] = 'gemini-3.5-flash'
202202
"""System default model used when no model is set on an agent."""
203203

204204
DEFAULT_LIVE_MODEL: ClassVar[str] = 'gemini-live-2.5-flash-native-audio'
@@ -215,7 +215,7 @@ class LlmAgent(BaseAgent, abc.ABC):
215215
216216
When not set, the agent will inherit the model from its ancestor. If no
217217
ancestor provides a model, the agent uses the default model configured via
218-
LlmAgent.set_default_model. The built-in default is gemini-3-flash-preview.
218+
LlmAgent.set_default_model. The built-in default is gemini-3.5-flash.
219219
"""
220220

221221
config_type: ClassVar[Type[BaseAgentConfig]] = LlmAgentConfig

src/google/adk/agents/llm_agent_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ class LlmAgentConfig(BaseAgentConfig):
5555
default=None,
5656
description=(
5757
'Optional. LlmAgent.model. Provide a model name string (e.g.'
58-
' "gemini-3-flash-preview"). If not set, the model will be inherited'
58+
' "gemini-3.5-flash"). If not set, the model will be inherited'
5959
' from the ancestor or fall back to the system default'
60-
' (gemini-3-flash-preview unless overridden via'
60+
' (gemini-3.5-flash unless overridden via'
6161
' LlmAgent.set_default_model). To construct a model instance from'
6262
' code, use model_code.'
6363
),

src/google/adk/cli/cli_create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ def _prompt_for_model() -> str:
128128
model_choice = click.prompt(
129129
"""\
130130
Choose a model for the root agent:
131-
1. gemini-2.5-flash
131+
1. gemini-3.5-flash
132132
2. Other models (fill later)
133133
Choose model""",
134134
type=click.Choice(["1", "2"]),
135135
)
136136
if model_choice == "1":
137-
return "gemini-2.5-flash"
137+
return "gemini-3.5-flash"
138138
else:
139139
click.secho(_OTHER_MODEL_MSG, fg="green")
140140
return "<FILL_IN_MODEL>"

tests/unittests/cli/utils/test_cli_create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ def test_prompt_for_google_api_key(monkeypatch: pytest.MonkeyPatch) -> None:
257257
def test_prompt_for_model_gemini(monkeypatch: pytest.MonkeyPatch) -> None:
258258
"""Selecting option '1' should return the default Gemini model string."""
259259
monkeypatch.setattr(click, "prompt", lambda *a, **k: "1")
260-
assert cli_create._prompt_for_model() == "gemini-2.5-flash"
260+
assert cli_create._prompt_for_model() == "gemini-3.5-flash"
261261

262262

263263
def test_prompt_for_model_other(monkeypatch: pytest.MonkeyPatch) -> None:

0 commit comments

Comments
 (0)