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)

This commit is contained in:
fdc310
2026-01-12 00:14:39 +08:00
committed by GitHub
parent 8e620dc635
commit a332206ba3

View File

@@ -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: