From ff7bebb782def4a9b96b2454d925737e9ff4dc34 Mon Sep 17 00:00:00 2001 From: fdc310 <82008029+fdc310@users.noreply.github.com> Date: Tue, 19 Aug 2025 23:23:00 +0800 Subject: [PATCH] fix:in the dify agent llm return message can not joint (#1617) --- pkg/provider/runners/difysvapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/provider/runners/difysvapi.py b/pkg/provider/runners/difysvapi.py index b527a3bf..8b66751c 100644 --- a/pkg/provider/runners/difysvapi.py +++ b/pkg/provider/runners/difysvapi.py @@ -499,7 +499,7 @@ class DifyServiceAPIRunner(runner.RequestRunner): content = re.sub(r'^\n', '', chunk['answer']) pending_agent_message += content think_end = True - elif think_end: + elif think_end or not think_start: pending_agent_message += chunk['answer'] if think_start: continue