Skip to content

Commit

Permalink
feat: update quickstart samples to use the Gemini Flash model (#11836)
Browse files Browse the repository at this point in the history
  • Loading branch information
irataxy authored Jun 4, 2024
1 parent f88608d commit bedb6b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generative_ai/gemini_guide_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def generate_text(project_id: str) -> str:

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

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

response = model.generate_content(
[
Expand Down
2 changes: 1 addition & 1 deletion generative_ai/gemini_text_input_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def generate_from_text_input(project_id: str) -> str:

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

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

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

0 comments on commit bedb6b5

Please sign in to comment.