mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #2228] [MERGED] fix(tongyi): resolve nested think tags and dropped tool calls in streaming #2344
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/2228
Author: @Cursx
Created: 12/10/2025
Status: ✅ Merged
Merged: 12/11/2025
Merged by: @crazywoola
Base:
main← Head:fix-tongyi/ollama📝 Commits (8)
abd700eUpdate llm.pyabeb62cUpdate manifest.yaml3d4694cUpdate models/tongyi/models/llm/llm.py673c95cUpdate llm.pydad374bUpdate models/tongyi/models/llm/llm.py0af94a9Update llm.py36e0ce1Update llm.pyc6eb9ccMerge branch 'main' into fix-tongyi/ollama📊 Changes
2 files changed (+35 additions, -22 deletions)
View changed files
📝
models/tongyi/manifest.yaml(+1 -1)📝
models/tongyi/models/llm/llm.py(+34 -21)📄 Description
Related Issues or Context
Summary
Fixes critical issues where Qwen-Thinking models would nest tool calls inside
<think>tags or drop them entirely during streaming.Key Changes
</think>if a tool call starts while reasoning is active.full_textstate management in non-incremental mode to prevent duplicated output.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.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.