Skip to content

Commit 4fa1627

Browse files
committed
fix: New models like qwen3.5 use 'reasoning' field instead of 'reasoning_content' for thought content (#langgenius/dify#32679)
1 parent 7b79a99 commit 4fa1627

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

python/dify_plugin/interfaces/model/large_language_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def _wrap_thinking_by_reasoning_content(self, delta: dict, is_reasoning: bool) -
535535
"""
536536

537537
content = delta.get("content") or ""
538-
reasoning_content = delta.get("reasoning_content")
538+
reasoning_content = delta.get("reasoning_content") or delta.get("reasoning")
539539
output = content
540540
if reasoning_content:
541541
if not is_reasoning:

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "dify_plugin"
3-
version = "0.7.4"
3+
version = "0.7.5"
44
description = "Dify Plugin SDK"
55
authors = [{ name = "langgenius", email = "hello@dify.ai" }]
66
dependencies = [

0 commit comments

Comments
 (0)