Skip to content

Commit f2266c8

Browse files
committed
fix: handle None case for video_list in base_video_understand_node
1 parent 41b7f79 commit f2266c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/step_node/video_understand_step_node/impl/base_video_understand_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def generate_history_human_message(self, chat_record, video_model):
159159
for data in chat_record.details.values():
160160
if self.node.id == data['node_id'] and 'video_list' in data:
161161
video_list = data['video_list']
162-
if len(video_list) == 0 or data['dialogue_type'] == 'WORKFLOW':
162+
if video_list is None or len(video_list) == 0 or data['dialogue_type'] == 'WORKFLOW':
163163
return HumanMessage(content=chat_record.problem_text)
164164
file_id_list = []
165165
url_list = []

0 commit comments

Comments
 (0)