mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #201] [MERGED] feat(vertex_ai): Support Gemini 2.0 models #1175
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/201
Author: @takatea
Created: 2/11/2025
Status: ✅ Merged
Merged: 2/12/2025
Merged by: @Yeuoly
Base:
main← Head:support-gemini2_0-models-for-vertix-ai📝 Commits (4)
bc31729feat(vertex_ai): add Gemini 2.0 model variants to provider9c3b5d5chore(vertex_ai): update the dependcy version960c800chore(vertex_ai): add .env.sample3e3b14achore(vertex_ai): bump version to 0.0.2📊 Changes
8 files changed (+210 additions, -2 deletions)
View changed files
➕
models/vertex_ai/.env.example(+4 -0)📝
models/vertex_ai/manifest.yaml(+1 -1)➕
models/vertex_ai/models/llm/gemini-2.0-flash-001.yaml(+41 -0)➕
models/vertex_ai/models/llm/gemini-2.0-flash-exp.yaml(+41 -0)➕
models/vertex_ai/models/llm/gemini-2.0-flash-lite-preview-02-05.yaml(+42 -0)➕
models/vertex_ai/models/llm/gemini-2.0-flash-thinking-exp-01-21.yaml(+39 -0)➕
models/vertex_ai/models/llm/gemini-2.0-pro-exp-02-05.yaml(+41 -0)📝
models/vertex_ai/requirements.txt(+1 -1)📄 Description
Summary
This PR adds support for new Gemini 2.0 model variants including Flash, Pro, and experimental versions for vertex ai.
Added Models
Screenshots
Additional Information
The
gemini-2.0-flash-thinking-exp-1219model 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: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-1219may become unavailable in the Gemini API in the near future (although it is currently accessible).Related PR
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.