[PR #1740] [MERGED] Gemini image 0.1.0 #2057

Closed
opened 2026-02-16 11:15:59 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/1740
Author: @yt-koike
Created: 9/19/2025
Status: Merged
Merged: 9/19/2025
Merged by: @crazywoola

Base: mainHead: gemini_image-0.1.0


📝 Commits (10+)

📊 Changes

9 files changed (+217 additions, -141 deletions)

View changed files

📝 tools/gemini_image/README.md (+7 -8)
📝 tools/gemini_image/main.py (+2 -2)
📝 tools/gemini_image/manifest.yaml (+3 -1)
📝 tools/gemini_image/provider/gemini_image.py (+3 -13)
📝 tools/gemini_image/provider/gemini_image.yaml (+11 -32)
📝 tools/gemini_image/requirements.txt (+1 -5)
tools/gemini_image/ruff.toml (+114 -0)
📝 tools/gemini_image/tools/image_generate.py (+57 -70)
📝 tools/gemini_image/tools/image_generate.yaml (+19 -10)

📄 Description

Related Issues or Context

This is a suggestion PR for a great work done by @Zhaohuai-L. This has a breaking change from 0.0.1 so I bumped up to 0.1.0.

Changes from 0.0.1

  • It used to make requests through google.genai, but now it uses requests, reducing dependencies.
  • It used to take Vertex Service Account key, Project ID and Google model endpoint location for credentials but now it takes only an API Key from Google AI Studio.
  • Introduce Ruff to unify the formatter.
  • Revise README.md
  • Add ja_JP translation

This PR contains Changes to Non-Plugin

  • Documentation
  • Other

This PR contains Changes to Non-LLM Models Plugin

  • I have Run Comprehensive Tests Relevant to My Changes

I have checked that both Txt2Img and Img2Img work.

image Txt2Img image Img2Img

This PR does not contain Changes to LLM Models Plugin

Version Control (Any Changes to the Plugin Will Require Bumping the Version)

  • I have Bumped Up the Version in Manifest.yaml (Top-Level Version Field, Not in Meta Section)

Dify Plugin SDK Version

  • I have Ensured dify_plugin>=0.3.0,<0.5.0 is in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

Local Deployment Environment

  • Dify Version is: 1.8.1, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration.

SaaS Environment

  • I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/1740 **Author:** [@yt-koike](https://github.com/yt-koike) **Created:** 9/19/2025 **Status:** ✅ Merged **Merged:** 9/19/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `gemini_image-0.1.0` --- ### 📝 Commits (10+) - [`6b7a08a`](https://github.com/langgenius/dify-official-plugins/commit/6b7a08ad8c2cb2692d661568d30559c062295bde) rm replace("'",'"') on json file - [`1158487`](https://github.com/langgenius/dify-official-plugins/commit/1158487194e1555cbc597ff16af080f5e58a2fea) introduce ruff the format - [`bb797e5`](https://github.com/langgenius/dify-official-plugins/commit/bb797e57a99b081e5c51d46df08ded601c268c93) Bump up the version - [`467d45b`](https://github.com/langgenius/dify-official-plugins/commit/467d45bced6f1cfa542bf1eaa21e38713260030e) rm print() according to https://github.com/langgenius/dify-official-plugins/issues/1673 - [`18146ba`](https://github.com/langgenius/dify-official-plugins/commit/18146ba764741d95e11f17c0320c8ef2953c9494) introduce ComfyUIModel - [`c1a81a0`](https://github.com/langgenius/dify-official-plugins/commit/c1a81a0ae1ccccab3d508a2bbcf79e0a5f7e5f68) rename model_manager.py - [`7442410`](https://github.com/langgenius/dify-official-plugins/commit/7442410b0cebe288b0fb2df2cf71e916a5329eaa) bump up - [`11c48d0`](https://github.com/langgenius/dify-official-plugins/commit/11c48d0c35a3ba982aa0bb01ab892cca131432d3) first try download without tokens - [`6f32b72`](https://github.com/langgenius/dify-official-plugins/commit/6f32b727cf3a05d7b5e28a4e154c01d6cff044ae) bugfix - [`3feab06`](https://github.com/langgenius/dify-official-plugins/commit/3feab06a19f3dadff10ec355c54aa95c20956acc) try downloading models without tokens first ### 📊 Changes **9 files changed** (+217 additions, -141 deletions) <details> <summary>View changed files</summary> 📝 `tools/gemini_image/README.md` (+7 -8) 📝 `tools/gemini_image/main.py` (+2 -2) 📝 `tools/gemini_image/manifest.yaml` (+3 -1) 📝 `tools/gemini_image/provider/gemini_image.py` (+3 -13) 📝 `tools/gemini_image/provider/gemini_image.yaml` (+11 -32) 📝 `tools/gemini_image/requirements.txt` (+1 -5) ➕ `tools/gemini_image/ruff.toml` (+114 -0) 📝 `tools/gemini_image/tools/image_generate.py` (+57 -70) 📝 `tools/gemini_image/tools/image_generate.yaml` (+19 -10) </details> ### 📄 Description ## Related Issues or Context <!-- ⚠️ NOTE: This repository is for Dify Official Plugins only. For community contributions, please submit to https://github.com/langgenius/dify-plugins instead. - Link Related Issues if Applicable: #issue_number - Or Provide Context about Why this Change is Needed --> This is a suggestion PR for [a great work](https://github.com/langgenius/dify-official-plugins/pull/1695) done by @Zhaohuai-L. This has a breaking change from 0.0.1 so I bumped up to 0.1.0. ### Changes from 0.0.1 - It used to make requests through `google.genai`, but now it uses `requests`, reducing dependencies. - It used to take Vertex Service Account key, Project ID and Google model endpoint location for credentials but now it takes only an API Key from [Google AI Studio](https://aistudio.google.com/app/apikey). - Introduce Ruff to unify the formatter. - Revise README.md - Add ja_JP translation ## This PR contains Changes to *Non-Plugin* <!-- Put an `x` in all the boxes that apply by replacing [ ] with [x] For example: - [x] Documentation --> - [x] Documentation - [ ] Other ## This PR contains Changes to *Non-LLM Models Plugin* - [x] I have Run Comprehensive Tests Relevant to My Changes <!-- 📷 Include Screenshots/Videos Demonstrating the Fix, New Feature, or the Behavior Before/After Breaking Changes. --> I have checked that both Txt2Img and Img2Img work. <img width="300" alt="image" src="https://github.com/user-attachments/assets/c1d8ec26-79b1-4090-86d7-7ac208f15748" /> Txt2Img <img width="300" alt="image" src="https://github.com/user-attachments/assets/5fec2322-d585-4c3b-b60b-f37b73a8088e" /> Img2Img ## This PR does not contain Changes to *LLM Models Plugin* ## Version Control (Any Changes to the Plugin Will Require Bumping the Version) - [x] I have Bumped Up the Version in Manifest.yaml (Top-Level `Version` Field, Not in Meta Section) <!-- ⚠️ NOTE: Version Format: MAJOR.MINOR.PATCH - MAJOR (0.x.x): Reserved for Significant architectural changes or incompatible API modifications - MINOR (x.0.x): For New feature additions while maintaining backward compatibility - PATCH (x.x.0): For Backward-compatible bug fixes and minor improvements - Note: Each Version Component (MAJOR, MINOR, PATCH) Can Be 2 Digits, e.g., 10.11.22 --> ## Dify Plugin SDK Version - [x] I have Ensured `dify_plugin>=0.3.0,<0.5.0` is in requirements.txt ([SDK docs](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/README.md)) ## Environment Verification (If Any Code Changes) <!-- ⚠️ NOTE: At Least One Environment Must Be Tested. --> ### Local Deployment Environment - [x] Dify Version is: 1.8.1, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration. <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt - No Breaking Changes in Dify That May Affect the Testing Result --> ### SaaS Environment - [ ] I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration <!-- - Python Virtual Env Matching Manifest.yaml & requirements.txt --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 11:15:59 -05:00
yindo closed this issue 2026-02-16 11:15:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#2057