[PR #1790] [MERGED] feat: support returning both text and image in gemini_image plugin (#1784) #2086

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/1790
Author: @acro-k-tanaka
Created: 9/30/2025
Status: Merged
Merged: 10/1/2025
Merged by: @crazywoola

Base: mainHead: feature/1784-gemini-image-text-output


📝 Commits (2)

  • 2a2f241 feat(gemini_image): extract and return text content alongside generated images
  • 09b7d1e bump version

📊 Changes

2 files changed (+23 additions, -10 deletions)

View changed files

📝 tools/gemini_image/manifest.yaml (+1 -1)
📝 tools/gemini_image/tools/image_generate.py (+22 -9)

📄 Description

Related Issues or Context

Resolves #1784
Gemini API responses may include both text and inline images.
Previously, only images were returned. This PR ensures both are captured and returned.

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

This PR contains Changes to LLM Models Plugin

  • My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking)
  • My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node)
  • My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.)
  • My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.)
  • My Changes Affect Structured Output Format (JSON, XML, etc.)
  • My Changes Affect Token Consumption Metrics
  • My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.)
  • Other Changes (Add New Models, Fix Model Parameters etc.)

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.9.0
  • I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration.
    image

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/1790 **Author:** [@acro-k-tanaka](https://github.com/acro-k-tanaka) **Created:** 9/30/2025 **Status:** ✅ Merged **Merged:** 10/1/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `feature/1784-gemini-image-text-output` --- ### 📝 Commits (2) - [`2a2f241`](https://github.com/langgenius/dify-official-plugins/commit/2a2f241480baafdf1a5b5f6dde82edbabe792c44) feat(gemini_image): extract and return text content alongside generated images - [`09b7d1e`](https://github.com/langgenius/dify-official-plugins/commit/09b7d1ec379e294a3eeebb311d53023b4576c812) bump version ### 📊 Changes **2 files changed** (+23 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `tools/gemini_image/manifest.yaml` (+1 -1) 📝 `tools/gemini_image/tools/image_generate.py` (+22 -9) </details> ### 📄 Description ## Related Issues or Context Resolves #1784 Gemini API responses may include both text and inline images. Previously, only images were returned. This PR ensures both are captured and returned. ## 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 ## This PR contains Changes to LLM Models Plugin - [ ] My Changes Affect Message Flow Handling (System Messages and User→Assistant Turn-Taking) - [ ] My Changes Affect Tool Interaction Flow (Multi-Round Usage and Output Handling, for both Agent App and Agent Node) - [ ] My Changes Affect Multimodal Input Handling (Images, PDFs, Audio, Video, etc.) - [x] My Changes Affect Multimodal Output Generation (Images, Audio, Video, etc.) - [ ] My Changes Affect Structured Output Format (JSON, XML, etc.) - [ ] My Changes Affect Token Consumption Metrics - [ ] My Changes Affect Other LLM Functionalities (Reasoning Process, Grounding, Prompt Caching, etc.) - [ ] Other Changes (Add New Models, Fix Model Parameters etc.) ## 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 - [x] 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 - [x] Dify Version is: 1.9.0 - [x] I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration. <img width="872" height="765" alt="image" src="https://github.com/user-attachments/assets/f7694496-1c3b-4a5c-8ba7-764b8afdd8f3" /> ### SaaS Environment - [ ] I have Tested My Changes on cloud.dify.ai with a Clean Environment That Matches the Production Configuration --- <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:16:03 -05:00
yindo closed this issue 2026-02-16 11:16:03 -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#2086