mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-09 07:16:04 +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
|
||||
elif think_end or not think_start:
|
||||
pending_agent_message += chunk['answer']
|
||||
if think_start:
|
||||
if think_start and not think_end:
|
||||
continue
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user