[PR #267] [MERGED] enh: The addition of the think closure tag supports multi-turn thin… #271

Closed
opened 2026-02-15 21:16:31 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/267
Author: @leslie2046
Created: 12/21/2025
Status: Merged
Merged: 12/24/2025
Merged by: @Yeuoly

Base: mainHead: optimization


📝 Commits (10+)

📊 Changes

2 files changed (+123 additions, -7 deletions)

View changed files

📝 python/dify_plugin/interfaces/model/large_language_model.py (+12 -7)
python/tests/interfaces/model/test_wrap_think.py (+111 -0)

📄 Description

…king scenarios.
ref https://github.com/langgenius/dify-official-plugins/pull/2195

Pull Request Checklist

Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks:

Compatibility Check

  • I have checked whether this change affects the backward compatibility of the plugin declared in README.md
  • I have checked whether this change affects the forward compatibility of the plugin declared in README.md
  • If this change introduces a breaking change, I have discussed it with the project maintainer and specified the release version in the README.md
  • I have described the compatibility impact and the corresponding version number in the PR description
  • I have checked whether the plugin version is updated in the README.md

Available Checks

  • Code has passed local tests
  • Relevant documentation has been updated (if necessary)

🔄 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-plugin-sdks/pull/267 **Author:** [@leslie2046](https://github.com/leslie2046) **Created:** 12/21/2025 **Status:** ✅ Merged **Merged:** 12/24/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `optimization` --- ### 📝 Commits (10+) - [`b2e8fe4`](https://github.com/langgenius/dify-plugin-sdks/commit/b2e8fe451b5e55b9bf49fbe3529bceb04bf8b241) ENH: The addition of the `think` closure tag supports multi-turn thinking scenarios. - [`a8a676a`](https://github.com/langgenius/dify-plugin-sdks/commit/a8a676ad95b9717b0c12761dcebdc4d42a45d056) fix lint - [`208285e`](https://github.com/langgenius/dify-plugin-sdks/commit/208285eabb36abc646d96a92fbea2af2e4602f71) add test - [`668ae65`](https://github.com/langgenius/dify-plugin-sdks/commit/668ae657fa289aeef0148b07709d4d9e7b2afa39) fix lint - [`4330c6f`](https://github.com/langgenius/dify-plugin-sdks/commit/4330c6f77dca36850debc820e56a2510884abbd1) fix lint - [`3378fb9`](https://github.com/langgenius/dify-plugin-sdks/commit/3378fb9a77dea6115fcab25a16b960f2a9541a20) fix lint - [`8d1472e`](https://github.com/langgenius/dify-plugin-sdks/commit/8d1472eed12d9e5bbbc7537007401403d57a93c0) fix lint - [`f617980`](https://github.com/langgenius/dify-plugin-sdks/commit/f61798039db52d55a733c405e209ac0e0a0b37e8) add unittest - [`37a3f50`](https://github.com/langgenius/dify-plugin-sdks/commit/37a3f500fd35d038e092d670047eeae8fae3518f) fix lint - [`2a5bcbb`](https://github.com/langgenius/dify-plugin-sdks/commit/2a5bcbbdb041321d6472983efbf528b401b8f390) fix lint ### 📊 Changes **2 files changed** (+123 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/interfaces/model/large_language_model.py` (+12 -7) ➕ `python/tests/interfaces/model/test_wrap_think.py` (+111 -0) </details> ### 📄 Description …king scenarios. ref https://github.com/langgenius/dify-official-plugins/pull/2195 # Pull Request Checklist Thank you for your contribution! Before submitting your PR, please make sure you have completed the following checks: ## Compatibility Check - [x] I have checked whether this change affects the **backward compatibility** of the plugin declared in `README.md` - [x] I have checked whether this change affects the **forward compatibility** of the plugin declared in `README.md` - [x] If this change introduces a breaking change, I have discussed it with the project maintainer and specified the release version in the `README.md` - [x] I have described the compatibility impact and the corresponding version number in the PR description - [x] I have checked whether the plugin version is updated in the `README.md` ## Available Checks - [x] Code has passed local tests - [x] Relevant documentation has been updated (if necessary) --- <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-15 21:16:31 -05:00
yindo closed this issue 2026-02-15 21:16:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#271