mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #2111] [MERGED] feat(vertex_ai): Add Gemini 3 Pro Preview support #2268
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/2111
Author: @kaixintang95
Created: 11/20/2025
Status: ✅ Merged
Merged: 11/20/2025
Merged by: @crazywoola
Base:
main← Head:feat/vertex-ai-gemini-3-pro-preview📝 Commits (2)
db129c6feat(vertex_ai): Add Gemini 3 Pro Preview support with new parametersdaca50achore: Bump version to 0.0.29📊 Changes
4 files changed (+137 additions, -4 deletions)
View changed files
📝
models/vertex_ai/manifest.yaml(+1 -1)➕
models/vertex_ai/models/llm/gemini-3-pro-preview.yaml(+102 -0)📝
models/vertex_ai/models/llm/llm.py(+33 -2)📝
models/vertex_ai/requirements.txt(+1 -1)📄 Description
Summary
Add support for gemini-3-pro-preview model to the Vertex AI plugin with Gemini 3 specific features and parameters.
New Features
gemini-3-pro-previewmodel definition with 1M context windowthinking_levelparameter (Low/High) for dynamic reasoning controlmedia_resolutionparameter (Default/Low/Medium/High) for multimodal visual processingImplementation Details
Model Definition (
gemini-3-pro-preview.yaml):Code Changes (
llm.py):thinking_levelto ThinkingConfig with string-to-enum conversion (Low → LOW, High → HIGH)media_resolutionparameter with MediaResolution enum mappingthinking_budget(Gemini 2.x) andthinking_level(Gemini 3)thinking_levelwhen both parameters present.get("role")to prevent AttributeErrorDependencies (
requirements.txt):google-genaifrom 1.11.0 to 1.51.0 for full Gemini 3 API supportKey Parameters
thinking_level (New for Gemini 3)
thinking_budgetfor Gemini 3 modelsmedia_resolution (New for Gemini 3)
Backward Compatibility
thinking_budgetTesting Checklist
thinking_levelparameter correctly sets reasoning depthmedia_resolutionparameter affects token usage as expectedinclude_thoughtsreturns reasoning processReferences
Files Changed
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.