Skip to content

Commit db17c11

Browse files
authored
fix(discoveryengine): use named model for generation spec (#13613)
b/452455170#comment5
1 parent 0d338a6 commit db17c11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

discoveryengine/standalone_apis_sample.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def grounded_generation_inline_vais_sample(
143143
# Format: projects/{project_number}/locations/{location}
144144
location=client.common_location_path(project=project_number, location="global"),
145145
generation_spec=discoveryengine.GenerateGroundedContentRequest.GenerationSpec(
146-
model_id="default",
146+
model_id="gemini-2.5-flash",
147147
),
148148
# Conversation between user and model
149149
contents=[
@@ -215,7 +215,7 @@ def grounded_generation_google_search_sample(
215215
# Format: projects/{project_number}/locations/{location}
216216
location=client.common_location_path(project=project_number, location="global"),
217217
generation_spec=discoveryengine.GenerateGroundedContentRequest.GenerationSpec(
218-
model_id="default",
218+
model_id="gemini-2.5-flash",
219219
),
220220
# Conversation between user and model
221221
contents=[
@@ -274,7 +274,7 @@ def grounded_generation_streaming_sample(
274274
# Format: projects/{project_number}/locations/{location}
275275
location=client.common_location_path(project=project_number, location="global"),
276276
generation_spec=discoveryengine.GenerateGroundedContentRequest.GenerationSpec(
277-
model_id="default",
277+
model_id="gemini-2.5-flash",
278278
),
279279
# Conversation between user and model
280280
contents=[

0 commit comments

Comments
 (0)