Skip to content

Update Gemini Pro 1.5 model reference

Tan Le requested to merge update-gemini-pro-version into main

What does this merge request do and why?

Update Gemini Pro 1.5 model reference.

The 0215 release is no longer available and returns 404.

How to set up and validate locally

We can verify the issue by running the following snippet.

from vertexai.generative_models import GenerativeModel
model = GenerativeModel("gemini-1.5-pro-preview-0215")
print(model.generate_content("Why is sky blue?"))
--snip--
NotFound: 404 Publisher Model `projects/dev-ai-research-0e2f8974/locations/us-central1/publishers/google/models/gemini-1.5-pro-preview-0215` not found.

Merge request checklist

  • I've ran the affected pipeline(s) to validate that nothing is broken.
  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.
Edited by Tan Le

Merge request reports

Loading