mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #500] [MERGED] VertexAI Models: replace vertexai library into google-cloud-aiplatform #1406
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/500
Author: @shoppingjaws
Created: 3/18/2025
Status: ✅ Merged
Merged: 3/19/2025
Merged by: @crazywoola
Base:
main← Head:main📝 Commits (5)
0e43373replace vertexai library into google-cloud-aiplatform0756678update version8dac311replace generationResponse5f84153fixa6ecb4cUpdate requirements.txt📊 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.

Why
The library installed in requirements.txt is version 1.71.1, but the latest Google SDK is 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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.