mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1628] [MERGED] feat(vertex-ai): support Claude region override and configurable globals #1997
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/1628
Author: @syalioune
Created: 9/1/2025
Status: ✅ Merged
Merged: 9/1/2025
Merged by: @crazywoola
Base:
main← Head:feature/configurable-vertex-locations📝 Commits (1)
8aa3f24feat(vertex-ai): support Claude region override and configurable global-only models📊 Changes
3 files changed (+33 additions, -5 deletions)
View changed files
📝
models/vertex_ai/manifest.yaml(+1 -1)📝
models/vertex_ai/models/llm/llm.py(+18 -4)📝
models/vertex_ai/provider/vertex_ai.yaml(+14 -0)📄 Description
Related Issues or Context
Currently the
vertex_aiplugin only uses hardcoded US GCP locations for Anthropic models which does not suit organizations having location constraints (e.g. Use onlyEUregions).The change provides the following changes :
vertex_anthropic_locationto decouple Claude location fromvertex_location(quota project/Gemini region)vertex_anthropic_location→vertex_location→ model defaults (Claude=us-east5, others=us-central1)vertex_global_modelsto override the default list of global-only modelsGLOBAL_ONLY_MODELStoGLOBAL_ONLY_MODELS_DEFAULTand read custom values from credentialsImpact: Enables using Anthropic (Claude) on Vertex AI from EU or other non-US locations (e.g., europe-west4) without being blocked by hard-coded US regions.
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.5.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.