Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(vertex_ai): Support Gemini 2.0 models #201

Merged

Conversation

takatea
Copy link
Contributor

@takatea takatea commented Feb 11, 2025

Summary

This PR adds support for new Gemini 2.0 model variants including Flash, Pro, and experimental versions for vertex ai.

Added Models

  • gemini-2.0-flash-001
  • gemini-2.0-flash-exp
  • gemini-2.0-flash-lite-preview-02-05
  • gemini-2.0-pro-exp-02-05
  • gemini-2.0-flash-thinking-exp-01-21

Screenshots

Model name Screenshots
gemini-2.0-flash-001 2_0_flash
gemini-2.0-flash-exp 2_0_exp
gemini-2.0-flash-lite-preview-02-05 2_0_flash_lite_preview
gemini-2.0-pro-exp-02-05 2_0_pro_exp_02_05
gemini-2.0-flash-thinking-exp-01-21 2_0_flash_thinking_01_21

Additional Information

The gemini-2.0-flash-thinking-exp-1219 model is available through the Gemini API, but it appears to be no longer available in Vertex AI. When attempting to use this model, the following error occurred:

google.api_core.exceptions.NotFound: 404 Publisher Model `projects/xxx/locations/us-central1/publishers/google/models/gemini-2.0-flash-thinking-exp-1219` not found.

To check this, I searched for "thinking" models in Vertex AI Studio and checked the model list in Google AI Studio. As shown in the screenshots below, the model is indeed not available in either platform.
Therefore, it's possible that gemini-2.0-flash-thinking-exp-1219 may become unavailable in the Gemini API in the near future (although it is currently accessible).

Screenshot
Vertex AI Studio Search Results (filtered by "thinking") vertex_ai_search
Google AI Studio Model List ai_studio_models

Related PR

Added the following models:
- gemini-2.0-flash
- gemini-2.0-flash lite preview
- gemini-2.0-pro experimental
- gemini-2.0-flash-thinking experimental
@takatea takatea changed the title feat(vertex_ai): Support gemini 2.0 models feat(vertex_ai): Support Gemini 2.0 models Feb 11, 2025
Copy link
Contributor

@Yeuoly Yeuoly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Yeuoly Yeuoly merged commit 9abc325 into langgenius:main Feb 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants