mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #1149] [MERGED] ✨ feat(gemini): Add gemini-2.0-flash-preview-image-generation model #1737
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/1149
Author: @takuya-o
Created: 6/23/2025
Status: ✅ Merged
Merged: 6/24/2025
Merged by: @crazywoola
Base:
main← Head:support-gemini-2.0-flash-preview-image-generation📝 Commits (1)
a4b4a6d✨ feat(gemini): Add gemini-2.0-flash-preview-image-generation model📊 Changes
4 files changed (+46 additions, -3 deletions)
View changed files
📝
models/gemini/manifest.yaml(+1 -1)📝
models/gemini/models/llm/_position.yaml(+1 -0)➕
models/gemini/models/llm/gemini-2.0-flash-preview-image-generation.yaml(+41 -0)📝
models/gemini/models/llm/llm.py(+3 -2)📄 Description
Added the definition file for the
gemini-2.0-flash-preview-image-generationmodel. This model supports multimodal output, including image generation. Updated _position.yaml to include the new model and modified llm.py logic to enable multimodal output for it.Incremented the manifest.yaml version to 0.2.5.
To support a new multimodal Gemini model and leverage its image generation and other multimodal capabilities.
Closes #1122
Related Issues or Context
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.4.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.