[PR #556] [MERGED] Gemini 2.0 Flash support Grounding #1439

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/556
Author: @shoppingjaws
Created: 3/24/2025
Status: Merged
Merged: 3/26/2025
Merged by: @crazywoola

Base: mainHead: develop/gemini-genai-compatible


📝 Commits (10+)

  • 0e43373 replace vertexai library into google-cloud-aiplatform
  • 0756678 update version
  • 8dac311 replace generationResponse
  • 5f84153 fix
  • a6ecb4c Update requirements.txt
  • 56fdd2f style: 不要な空行を削除してコードスタイルを改善
  • efa1bfc feat: groundingオプションの追加とGoogle GenAIライブラリへの対応
  • 7ab9246 fix: 不要なIteratorインポートを削除
  • 2f35a14 feat: GeminiモデルのGrounding設定をboolean型に変更し、Google検索機能を統合
  • c759b08 Delete models/gemini/file_cache.json

📊 Changes

4 files changed (+97 additions, -168 deletions)

View changed files

📝 models/gemini/manifest.yaml (+1 -1)
📝 models/gemini/models/llm/gemini-2.0-flash.yaml (+10 -0)
📝 models/gemini/models/llm/llm.py (+84 -166)
📝 models/gemini/requirements.txt (+2 -1)

📄 Description

  • Replace SDK into genai SDK cuz of officially deprecated announcement
  • add Grounding Suport

Confimed

  • Tools works well
  • File upload works well
  • options works well
  • grounding option works well

🔄 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/556 **Author:** [@shoppingjaws](https://github.com/shoppingjaws) **Created:** 3/24/2025 **Status:** ✅ Merged **Merged:** 3/26/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `develop/gemini-genai-compatible` --- ### 📝 Commits (10+) - [`0e43373`](https://github.com/langgenius/dify-official-plugins/commit/0e43373ec22a03fa13ce653e5815a97521320d76) replace vertexai library into google-cloud-aiplatform - [`0756678`](https://github.com/langgenius/dify-official-plugins/commit/07566783b530baad1c92a4bca733f76714d38ec4) update version - [`8dac311`](https://github.com/langgenius/dify-official-plugins/commit/8dac311a4a7cc7c9d36a8fbf570c5bd77a785fcd) replace generationResponse - [`5f84153`](https://github.com/langgenius/dify-official-plugins/commit/5f84153e1030c00193c90a805d755fec80955df9) fix - [`a6ecb4c`](https://github.com/langgenius/dify-official-plugins/commit/a6ecb4c30cae8dbcb66bcb9adcaec8c1d9c1dc84) Update requirements.txt - [`56fdd2f`](https://github.com/langgenius/dify-official-plugins/commit/56fdd2fe645b9556fbebde9a024e18e3961219c0) `style: 不要な空行を削除してコードスタイルを改善` - [`efa1bfc`](https://github.com/langgenius/dify-official-plugins/commit/efa1bfc8e40800ae2e3c74ca81b5240524d6d781) `feat: groundingオプションの追加とGoogle GenAIライブラリへの対応` - [`7ab9246`](https://github.com/langgenius/dify-official-plugins/commit/7ab9246785bff8da284c2235c0afc6b020157ca1) fix: 不要なIteratorインポートを削除 - [`2f35a14`](https://github.com/langgenius/dify-official-plugins/commit/2f35a1486fe40edff98353e5a62b99808d005888) feat: GeminiモデルのGrounding設定をboolean型に変更し、Google検索機能を統合 - [`c759b08`](https://github.com/langgenius/dify-official-plugins/commit/c759b087a49892fc04ec3834e6118c8d21463db9) Delete models/gemini/file_cache.json ### 📊 Changes **4 files changed** (+97 additions, -168 deletions) <details> <summary>View changed files</summary> 📝 `models/gemini/manifest.yaml` (+1 -1) 📝 `models/gemini/models/llm/gemini-2.0-flash.yaml` (+10 -0) 📝 `models/gemini/models/llm/llm.py` (+84 -166) 📝 `models/gemini/requirements.txt` (+2 -1) </details> ### 📄 Description - Replace SDK into [genai](https://github.com/googleapis/python-genai/) SDK cuz of officially deprecated announcement - add Grounding Suport Confimed - [x] Tools works well - [x] File upload works well - [x] options works well - [x] grounding option works well --- <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:22:56 -05:00
yindo closed this issue 2026-02-16 10:22:56 -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#1439