[PR #922] [MERGED] fix(gemini): Fix file uploading issue in Gemini v0.2.0 #1624

Closed
opened 2026-02-16 10:23:30 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/922
Author: @QuantumGhost
Created: 5/15/2025
Status: Merged
Merged: 5/15/2025
Merged by: @crazywoola

Base: mainHead: fix/gemini


📝 Commits (3)

  • 150dfca chore(gemini): remove unnecessary file file_cache.json
  • 78aacad fix(gemini): Fix issue about file upload handling in Gemini Plugin
  • 56dcfdb chore(gemini): Add .difyignore for gemini plugin

📊 Changes

7 files changed (+226 additions, -13 deletions)

View changed files

.difyignore (+190 -0)
models/gemini/.difyignore (+1 -0)
models/gemini/file_cache.json (+0 -1)
📝 models/gemini/manifest.yaml (+1 -1)
📝 models/gemini/models/llm/llm.py (+20 -10)
📝 models/gemini/models/llm/test_llm.py (+13 -0)
📝 models/gemini/requirements.txt (+1 -1)

📄 Description

Related Issues or Context

The Gemini plugin v0.2.0 has some issues with file uploading. This PR fix the issue.

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, 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'm Using dify_plugin>=0.2.0,<0.3.0 in requirements.txt (SDK docs)

Environment Verification (If Any Code Changes)

Local Deployment Environment

  • Dify Version is: 1.4.0

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/922 **Author:** [@QuantumGhost](https://github.com/QuantumGhost) **Created:** 5/15/2025 **Status:** ✅ Merged **Merged:** 5/15/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `fix/gemini` --- ### 📝 Commits (3) - [`150dfca`](https://github.com/langgenius/dify-official-plugins/commit/150dfcafe6c5ea345fa1b1d35a7c25dad3b146b9) chore(gemini): remove unnecessary file file_cache.json - [`78aacad`](https://github.com/langgenius/dify-official-plugins/commit/78aacad19cd566a7184878ff4b06a272f09a6ea9) fix(gemini): Fix issue about file upload handling in Gemini Plugin - [`56dcfdb`](https://github.com/langgenius/dify-official-plugins/commit/56dcfdbe135ecb282f36ae909d6cb97a1418ac78) chore(gemini): Add .difyignore for gemini plugin ### 📊 Changes **7 files changed** (+226 additions, -13 deletions) <details> <summary>View changed files</summary> ➕ `.difyignore` (+190 -0) ➕ `models/gemini/.difyignore` (+1 -0) ➖ `models/gemini/file_cache.json` (+0 -1) 📝 `models/gemini/manifest.yaml` (+1 -1) 📝 `models/gemini/models/llm/llm.py` (+20 -10) 📝 `models/gemini/models/llm/test_llm.py` (+13 -0) 📝 `models/gemini/requirements.txt` (+1 -1) </details> ### 📄 Description ## Related Issues or Context The Gemini plugin v0.2.0 has some issues with file uploading. This PR fix the issue. ## 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* - [x] 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) - [x] 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, etc.) ## 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) ## Dify Plugin SDK Version - [x] I'm Using `dify_plugin>=0.2.0,<0.3.0` in requirements.txt ([SDK docs](https://github.com/langgenius/dify-plugin-sdks/blob/main/python/README.md)) ## Environment Verification (If Any Code Changes) ### Local Deployment Environment - [ ] Dify Version is: 1.4.0 ### 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 10:23:30 -05:00
yindo closed this issue 2026-02-16 10:23:31 -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#1624