mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1356] [MERGED] fix(gemini): include thinking content in streamed responses #1848
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/1356
Author: @QIN2DIM
Created: 7/26/2025
Status: ✅ Merged
Merged: 7/26/2025
Merged by: @crazywoola
Base:
main← Head:fix-include-thoughts📝 Commits (7)
b733d83chore(dependencies): update dependencies and project configurationbb4af29fix(gemini): include thoughts in response when requested56a3558fix(gemini): include thinking content in streamed responsesa367c51fix(models): add missing include_thoughts parameter to Gemini 2.5 model configs8452a04Update README.md8ab6e23Update llm.pyb915344ff📊 Changes
22 files changed (+779 additions, -406 deletions)
View changed files
📝
models/gemini/.gitignore(+1 -0)➕
models/gemini/.python-version(+1 -0)📝
models/gemini/main.py(+1 -1)📝
models/gemini/manifest.yaml(+1 -1)📝
models/gemini/models/common_gemini.py(+1 -3)📝
models/gemini/models/llm/gemini-2.5-flash-lite-preview-06-17.yaml(+32 -11)📝
models/gemini/models/llm/gemini-2.5-flash-lite.yaml(+32 -11)📝
models/gemini/models/llm/gemini-2.5-flash-preview-04-17.yaml(+43 -9)📝
models/gemini/models/llm/gemini-2.5-flash-preview-05-20.yaml(+41 -16)📝
models/gemini/models/llm/gemini-2.5-flash.yaml(+34 -13)📝
models/gemini/models/llm/gemini-2.5-pro-exp-03-25.yaml(+32 -9)📝
models/gemini/models/llm/gemini-2.5-pro-preview-03-25.yaml(+24 -12)📝
models/gemini/models/llm/gemini-2.5-pro-preview-05-06.yaml(+24 -12)📝
models/gemini/models/llm/gemini-2.5-pro-preview-06-05.yaml(+24 -12)📝
models/gemini/models/llm/gemini-2.5-pro.yaml(+22 -11)📝
models/gemini/models/llm/llm.py(+180 -153)📝
models/gemini/models/llm/test_llm.py(+45 -101)📝
models/gemini/models/llm/utils.py(+10 -12)📝
models/gemini/models/text_embedding/text_embedding.py(+16 -12)📝
models/gemini/provider/google.py(+1 -3)...and 2 more files
📄 Description
Related Issues or Context
https://github.com/user-attachments/assets/cbe367f3-6d65-424f-ac6d-a5171a1b87d3
https://github.com/user-attachments/assets/bc14a4b1-f515-4e5a-9674-f09954c9c5de
https://github.com/user-attachments/assets/b1193458-6191-4bbf-b6bb-a8d6ed7b0459
This 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.