Skip to content

Commit bedb6b5

Browse files
authored
feat: update quickstart samples to use the Gemini Flash model (#11836)
1 parent f88608d commit bedb6b5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generative_ai/gemini_guide_example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def generate_text(project_id: str) -> str:
2424

2525
vertexai.init(project=project_id, location="us-central1")
2626

27-
model = GenerativeModel(model_name="gemini-1.0-pro-vision-001")
27+
model = GenerativeModel(model_name="gemini-1.5-flash-001")
2828

2929
response = model.generate_content(
3030
[

generative_ai/gemini_text_input_example.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def generate_from_text_input(project_id: str) -> str:
2323

2424
vertexai.init(project=project_id, location="us-central1")
2525

26-
model = GenerativeModel(model_name="gemini-1.0-pro-002")
26+
model = GenerativeModel(model_name="gemini-1.5-flash-001")
2727

2828
response = model.generate_content(
2929
"What's a good name for a flower shop that specializes in selling bouquets of dried flowers?"

0 commit comments

Comments
 (0)