mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-29 05:37:14 +00:00
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:
@@ -529,7 +529,7 @@ class DifyServiceAPIRunner(runner.RequestRunner):
|
|||||||
think_end = True
|
think_end = True
|
||||||
elif think_end or not think_start:
|
elif think_end or not think_start:
|
||||||
pending_agent_message += chunk['answer']
|
pending_agent_message += chunk['answer']
|
||||||
if think_start:
|
if think_start and not think_end:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user