mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +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'])
|
||||
pending_agent_message += content
|
||||
think_end = True
|
||||
elif think_end:
|
||||
elif think_end or not think_start:
|
||||
pending_agent_message += chunk['answer']
|
||||
if think_start:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user