mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1539] [MERGED] fix(gemini-config): deprecate multiple gemini models and refine thinking/response modality config #1943
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/1539
Author: @QIN2DIM
Created: 8/20/2025
Status: ✅ Merged
Merged: 8/20/2025
Merged by: @crazywoola
Base:
main← Head:fix-gemini-config-0821📝 Commits (6)
27f6ccefix(gemini-config): deprecate multiple gemini models and refine thinking/response modality config93bb524fix(gemini): update gemini plugin version to 0.4.2f02bdc0fix(gemini): update response modalities enum usage in gemini config903abbafix(gemini): refactor chat parameter and tool calling configuration977157bfix(gemini): update gemini model configuration and validation15ef06efix(gemini): correct mime type handling for markdown documents📊 Changes
20 files changed (+133 additions, -52 deletions)
View changed files
📝
models/gemini/manifest.yaml(+1 -1)📝
models/gemini/models/llm/gemini-1.5-flash-001.yaml(+1 -0)📝
models/gemini/models/llm/gemini-1.5-flash-8b-exp-0827.yaml(+1 -0)📝
models/gemini/models/llm/gemini-1.5-flash-8b-exp-0924.yaml(+1 -0)📝
models/gemini/models/llm/gemini-1.5-flash-exp-0827.yaml(+1 -0)📝
models/gemini/models/llm/gemini-1.5-flash-latest.yaml(+1 -0)📝
models/gemini/models/llm/gemini-1.5-pro-001.yaml(+1 -0)📝
models/gemini/models/llm/gemini-1.5-pro-exp-0801.yaml(+1 -0)📝
models/gemini/models/llm/gemini-1.5-pro-exp-0827.yaml(+1 -0)📝
models/gemini/models/llm/gemini-2.0-pro-exp-02-05.yaml(+1 -0)📝
models/gemini/models/llm/gemini-2.0-pro-exp.yaml(+1 -0)📝
models/gemini/models/llm/gemini-2.5-flash-preview-04-17.yaml(+1 -0)📝
models/gemini/models/llm/gemini-2.5-pro-exp-03-25.yaml(+1 -0)📝
models/gemini/models/llm/gemini-exp-1114.yaml(+1 -0)📝
models/gemini/models/llm/gemini-exp-1121.yaml(+1 -0)📝
models/gemini/models/llm/gemini-exp-1206.yaml(+1 -0)📝
models/gemini/models/llm/learnlm-1.5-pro-experimental.yaml(+1 -0)📝
models/gemini/models/llm/llm.py(+114 -46)📝
models/gemini/provider/google.py(+1 -3)📝
models/gemini/pyproject.toml(+1 -2)📄 Description
Related Issues or Context
This PR improves the handling of Gemini model configurations and cleans up the model list.
Key Changes:
Deprecations:
deprecated: trueto several experimental and legacy Gemini models in their YAML configs.Refactoring (
GoogleLargeLanguageModel):thinking_configon incompatible models (e.g.,gemini-2.0-flash-preview-image-generation,nano-banana). This is a short-term fix._set_chat_parameters,_set_tool_calling) to improve code organization.Configuration & Validation:
genai.Clientfor more reliable validation at no cost.gemini-2.0-flash-litetogemini-2.5-flash.Bug Fixes:
text/markdownfor Markdown (.md) document uploads, ensuring proper handling by the Gemini API.This work addresses the following issues:
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.