mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1600] [MERGED] feat(gemini): support file parts in gemini model messages #1979
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/1600
Author: @QIN2DIM
Created: 8/27/2025
Status: ✅ Merged
Merged: 8/29/2025
Merged by: @crazywoola
Base:
main← Head:support-model-file-parts📝 Commits (1)
7265d91feat(gemini): support file parts in gemini model messages📊 Changes
2 files changed (+15 additions, -8 deletions)
View changed files
📝
models/gemini/manifest.yaml(+1 -1)📝
models/gemini/models/llm/llm.py(+14 -7)📄 Description
Related Issues or Context
This commit enhances the Gemini model's message handling to support file parts alongside text content. Key changes include:
_build_text_partshelper functionThis 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.5.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.