[PR #500] [MERGED] VertexAI Models: replace vertexai library into google-cloud-aiplatform #1406

Closed
opened 2026-02-16 10:22:51 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/500
Author: @shoppingjaws
Created: 3/18/2025
Status: Merged
Merged: 3/19/2025
Merged by: @crazywoola

Base: mainHead: main


📝 Commits (5)

📊 Changes

3 files changed (+10 additions, -7 deletions)

View changed files

📝 models/vertex_ai/manifest.yaml (+1 -1)
📝 models/vertex_ai/models/llm/llm.py (+7 -4)
📝 models/vertex_ai/requirements.txt (+2 -2)

📄 Description

What

When running with the Grounding option enabled in the Vertex AI plugin for Gemini 1.5 and other models, it fails because the DynamicRetrievalConfig object does not exist.
CleanShot 2025-03-19 at 11 48 38@2x

Why

The library installed in requirements.txt is version 1.71.1, but the latest Google SDK is 1.85.0.

  • The latest version of vertexai is 1.71.1 and has stopped being updated.
  • Google SDK supports up to version 1.85.0.

DynamicRetrievalConfig is not implemented in version 1.71.1, causing the failure, but updating to version 1.85.0 will resolve this issue.

Env

  • Selfhost
  • Dify v1.0
  • Plugin(Vertex AI | Google Cloud Platform) v0.0.7

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/500 **Author:** [@shoppingjaws](https://github.com/shoppingjaws) **Created:** 3/18/2025 **Status:** ✅ Merged **Merged:** 3/19/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (5) - [`0e43373`](https://github.com/langgenius/dify-official-plugins/commit/0e43373ec22a03fa13ce653e5815a97521320d76) replace vertexai library into google-cloud-aiplatform - [`0756678`](https://github.com/langgenius/dify-official-plugins/commit/07566783b530baad1c92a4bca733f76714d38ec4) update version - [`8dac311`](https://github.com/langgenius/dify-official-plugins/commit/8dac311a4a7cc7c9d36a8fbf570c5bd77a785fcd) replace generationResponse - [`5f84153`](https://github.com/langgenius/dify-official-plugins/commit/5f84153e1030c00193c90a805d755fec80955df9) fix - [`a6ecb4c`](https://github.com/langgenius/dify-official-plugins/commit/a6ecb4c30cae8dbcb66bcb9adcaec8c1d9c1dc84) Update requirements.txt ### 📊 Changes **3 files changed** (+10 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `models/vertex_ai/manifest.yaml` (+1 -1) 📝 `models/vertex_ai/models/llm/llm.py` (+7 -4) 📝 `models/vertex_ai/requirements.txt` (+2 -2) </details> ### 📄 Description # What When running with the Grounding option enabled in the Vertex AI plugin for Gemini 1.5 and other models, it fails because the DynamicRetrievalConfig object does not exist. ![CleanShot 2025-03-19 at 11 48 38@2x](https://github.com/user-attachments/assets/3e9d22a3-7d2d-4dbc-aed4-12488c51f021) # Why The library installed in [requirements.txt](https://github.com/langgenius/dify-official-plugins/blob/main/models/vertex_ai/requirements.txt) is version 1.71.1, but the latest Google SDK is 1.85.0. - The latest version of [vertexai](https://pypi.org/project/vertexai/) is 1.71.1 and has stopped being updated. - [Google SDK](https://pypi.org/project/google-cloud-aiplatform/) supports up to version 1.85.0. DynamicRetrievalConfig is not implemented in version 1.71.1, causing the failure, but updating to version 1.85.0 will resolve this issue. # Env - Selfhost - Dify v1.0 - Plugin(Vertex AI | Google Cloud Platform) v0.0.7 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:22:51 -05:00
yindo closed this issue 2026-02-16 10:22:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#1406