mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-21 18:05:30 -04:00
[PR #278] fix: close <think> block only when reasoning_content is None
#280
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-plugin-sdks/pull/278
Author: @utsumi-fj
Created: 1/8/2026
Status: 🔄 Open
Base:
main← Head:fix_multiple_think_tag📝 Commits (1)
e7d9e0afix: close<think>block only whenreasoning_contentis None📊 Changes
2 files changed (+12 additions, -14 deletions)
View changed files
📝
python/dify_plugin/interfaces/model/large_language_model.py(+2 -3)📝
python/tests/interfaces/model/test_wrap_think.py(+10 -11)📄 Description
Fixes #277
Compatibility Check
README.mdREADME.mdREADME.mdREADME.mdCompatibility impact
Since this is a bug fix, there is no compatibility impact.
Available Checks
Before
After
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.