From a332206ba34f2697d0f68c846407c1c79f688f28 Mon Sep 17 00:00:00 2001 From: fdc310 <82008029+fdc310@users.noreply.github.com> Date: Mon, 12 Jan 2026 00:14:39 +0800 Subject: [PATCH] fix: When the deletion of the thinking chain is activated, since the "continue" is triggered as soon as the thinking begins, it causes a bug in the subsequent judgment that breaks out of the loop impression. (#1913) --- src/langbot/pkg/provider/runners/difysvapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/langbot/pkg/provider/runners/difysvapi.py b/src/langbot/pkg/provider/runners/difysvapi.py index 17203bdd..3e89500a 100644 --- a/src/langbot/pkg/provider/runners/difysvapi.py +++ b/src/langbot/pkg/provider/runners/difysvapi.py @@ -529,7 +529,7 @@ class DifyServiceAPIRunner(runner.RequestRunner): think_end = True elif think_end or not think_start: pending_agent_message += chunk['answer'] - if think_start: + if think_start and not think_end: continue else: