mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #2279] [MERGED] feat(gemini): add gemini-3-flash-preview model support #2375
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/2279
Author: @QIN2DIM
Created: 12/17/2025
Status: ✅ Merged
Merged: 12/17/2025
Merged by: @crazywoola
Base:
main← Head:gemini-3-flash-preview📝 Commits (4)
6c2757afeat(gemini): add gemini-3-flash-preview model supportb37baedfeat(models): add structured-output support and json_schema parameter to gemini-3 models9760f0drefactor(llm): replace string-to-thought-level mapping with dictionary lookupd112537fix(model-configuration): change max_output_tokens type from float to int📊 Changes
10 files changed (+182 additions, -13 deletions)
View changed files
📝
models/gemini/.env.example(+1 -2)📝
models/gemini/manifest.yaml(+1 -1)📝
models/gemini/models/llm/_position.yaml(+1 -0)➕
models/gemini/models/llm/gemini-3-flash-preview.yaml(+147 -0)📝
models/gemini/models/llm/gemini-3-pro-image-preview.yaml(+4 -1)📝
models/gemini/models/llm/gemini-3-pro-preview.yaml(+4 -1)📝
models/gemini/models/llm/llm.py(+9 -4)📝
models/gemini/models/text_embedding/text_embedding.py(+6 -0)📝
models/gemini/pyproject.toml(+1 -1)📝
models/gemini/requirements.txt(+8 -3)📄 Description
Related Issues or Context
Summary
This PR integrates support for the Gemini 3 model series (Flash and Pro previews) and introduces significant enhancements to the model configuration, parameters, and underlying SDK dependencies.
Key Changes:
gemini-3-flash-preview, including multimodal capabilities such as vision, streaming, tool calling, and processing for documents, video, and audio.gemini-3-pro-previewandgemini-3-pro-image-preview.structured-outputsupport for Gemini 3 models.json_schemaparameter withuse_templaterules to ensure reliable and formatted API responses.thinking_level,media_resolution,grounding,url_context, andcode_execution.temperaturesettings.google.generativeaito the newergoogle.genaipackage.google-genaito1.56.0andgoogle-authto2.45.0for better stability.0.7.1.REMOTE_INSTALL_HOST:PORTtoREMOTE_INSTALL_URLfor improved URL formatting.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.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.