mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-25 13:56:08 +00:00
fix:in the dify agent llm return message can not joint (#1617)
This commit is contained in:
@@ -499,7 +499,7 @@ class DifyServiceAPIRunner(runner.RequestRunner):
|
|||||||
content = re.sub(r'^\n</think>', '', chunk['answer'])
|
content = re.sub(r'^\n</think>', '', chunk['answer'])
|
||||||
pending_agent_message += content
|
pending_agent_message += content
|
||||||
think_end = True
|
think_end = True
|
||||||
elif think_end:
|
elif think_end or not think_start:
|
||||||
pending_agent_message += chunk['answer']
|
pending_agent_message += chunk['answer']
|
||||||
if think_start:
|
if think_start:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user