Skip to content

Commit

Permalink
fix annotation reply is null (#7103)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerok authored Aug 8, 2024
1 parent 7210613 commit ad682c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/core/app/apps/advanced_chat/generate_task_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,11 @@ def _process_stream_response(
:return:
"""
for message in self._queue_manager.listen():
if message.event and hasattr(message.event, 'metadata') and message.event.metadata.get('is_answer_previous_node', False) and publisher:
if (message.event
and hasattr(message.event, 'metadata')
and message.event.metadata
and message.event.metadata.get('is_answer_previous_node', False)
and publisher):
publisher.publish(message=message)
elif (hasattr(message.event, 'execution_metadata')
and message.event.execution_metadata
Expand Down

0 comments on commit ad682c3

Please sign in to comment.