mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 18:32:48 +00:00
fix: 添加对话stream流式结束标记
This commit is contained in:
parent
a529bc3510
commit
a4b4db70bd
|
|
@ -304,11 +304,11 @@ class WorkflowManage:
|
|||
if chunk is None:
|
||||
break
|
||||
yield chunk
|
||||
yield self.get_chunk_content('', True)
|
||||
finally:
|
||||
self.work_flow_post_handler.handler(self.params['chat_id'], self.params['chat_record_id'],
|
||||
self.answer,
|
||||
self)
|
||||
yield self.get_chunk_content('', True)
|
||||
|
||||
def run_chain_async(self, current_node):
|
||||
future = executor.submit(self.run_chain, current_node)
|
||||
|
|
|
|||
Loading…
Reference in New Issue