mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
fix stream bugs
This commit is contained in:
@ -54,7 +54,7 @@ class AdvancedChatAppGenerator(MessageBasedAppGenerator):
|
||||
inputs = args['inputs']
|
||||
|
||||
extras = {
|
||||
"auto_generate_conversation_name": args['auto_generate_name'] if 'auto_generate_name' in args else True
|
||||
"auto_generate_conversation_name": args['auto_generate_name'] if 'auto_generate_name' in args else False
|
||||
}
|
||||
|
||||
# get conversation
|
||||
|
||||
@ -346,7 +346,7 @@ class AdvancedChatAppGenerateTaskPipeline:
|
||||
|
||||
yield self._yield_response(response)
|
||||
elif isinstance(event, QueueTextChunkEvent):
|
||||
delta_text = event.chunk_text
|
||||
delta_text = event.text
|
||||
if delta_text is None:
|
||||
continue
|
||||
|
||||
|
||||
@ -76,7 +76,7 @@ class WorkflowEventTriggerCallback(BaseWorkflowCallback):
|
||||
streamable_node_ids = []
|
||||
end_node_ids = []
|
||||
for node_config in graph.get('nodes'):
|
||||
if node_config.get('type') == NodeType.END.value:
|
||||
if node_config.get('data', {}).get('type') == NodeType.END.value:
|
||||
end_node_ids.append(node_config.get('id'))
|
||||
|
||||
for edge_config in graph.get('edges'):
|
||||
|
||||
Reference in New Issue
Block a user