mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #2120] [MERGED] feat(gemini): add thought signature validation support #2273
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/2120
Author: @QIN2DIM
Created: 11/24/2025
Status: ✅ Merged
Merged: 12/3/2025
Merged by: @crazywoola
Base:
main← Head:skip_thought_signature_validator📝 Commits (3)
2711369feat(gemini): add thought signature validation supportc61e519Refactor variable names and update provider label5aedf6cMerge branch 'main' into skip_thought_signature_validator📊 Changes
4 files changed (+27 additions, -14 deletions)
View changed files
📝
models/gemini/manifest.yaml(+1 -1)📝
models/gemini/models/llm/llm.py(+24 -11)📝
models/gemini/pyproject.toml(+1 -1)📝
models/gemini/requirements.txt(+1 -1)📄 Description
Related Issues or Context
This commit implements support for thought signature validation in the Gemini LLM model, as required by the new Gemini API features.
DEFAULT_THOUGHT_SIGNATUREconstant with valueb'skip_thought_signature_validator'_build_text_partsandbuild_partsfunctions to acceptis_assistant_treeflag to conditionally apply thought signatureThis 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.6.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.