mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #2109] [MERGED] feat(gemini): Support Gemini 3 Pro Image Preview & Configuration Enhancements
#2266
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/2109
Author: @QIN2DIM
Created: 11/20/2025
Status: ✅ Merged
Merged: 11/20/2025
Merged by: @crazywoola
Base:
main← Head:add-gemini-3-pro-image-preview📝 Commits (7)
b71439ffeat(gemini): add gemini-3-pro-image-preview modelfd16028fix(gemini): correct Gemini 3 Pro context size71f028eSquashed commit of the following:6bdb3d6refactor(gemini): rename image_size to resolution and add grounding parameter8d41d5dUpdate gemini-3-pro-image-preview.yaml55d80eaUpdate gemini-3-pro-image-preview.yamlca81e98Merge branch 'main' into add-gemini-3-pro-image-preview📊 Changes
4 files changed (+113 additions, -7 deletions)
View changed files
📝
models/gemini/manifest.yaml(+1 -1)📝
models/gemini/models/llm/_position.yaml(+1 -0)➕
models/gemini/models/llm/gemini-3-pro-image-preview.yaml(+104 -0)📝
models/gemini/models/llm/llm.py(+7 -6)📄 Description
Gallery
Related Issues or Context
This PR introduces full support for the
gemini-3-pro-image-previewmodel, including pricing and parameter configurations. It also refines image generation settings (resolution and aspect ratio) across Gemini models and adds grounding capabilities.✨ New Features
gemini-3-pro-image-previewwith vision and document processing capabilities. Registered the model in theIMAGE_GENERATION_MODELSset.groundingboolean parameter (default:false) for Gemini 3 Pro to enable fact-checking via Google Search, including translations foren_US,zh_Hans, andja_JP.aspect_ratioparameter to thegemini-2.5-flash-imagemodel with predefined options (Auto, 1:1, 16:9, 3:4, 4:3, etc.).♻️ Refactoring & Optimizations
image_sizetoresolutionfor better clarity and updated related labels/help text._set_image_configmethod to handle image generation settings uniformly.🐛 Fixes & Adjustments
context_sizefor Gemini 3 Pro from 32,768 to 65,536 tokens.temperaturevalue from 2 to 1.0.6.3.Change Log
gemini-3-pro-image-previewmodelgroundingparameter for Google Searchaspect_ratiosupport forgemini-2.5-flash-imageimage_sizetoresolution& update pricing configThis 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.6.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.