Browse Source

fix: unbound reference

Yeuoly 7 months ago
parent
commit
8102cee8df
1 changed files with 2 additions and 2 deletions
  1. 2 2
      api/core/app/apps/advanced_chat/generate_task_pipeline.py

+ 2 - 2
api/core/app/apps/advanced_chat/generate_task_pipeline.py

@@ -352,8 +352,8 @@ class AdvancedChatAppGenerateTaskPipeline(BasedGenerateTaskPipeline, WorkflowCyc
                     workflow_node_execution=workflow_node_execution,
                 )
 
-                if response:
-                    yield response
+                if response_finish:
+                    yield response_finish
 
             elif isinstance(event, QueueParallelBranchRunStartedEvent):
                 if not workflow_run: