mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: handle None case for video_list in base_video_understand_node
This commit is contained in:
parent
41b7f79202
commit
f2266c8d2a
|
|
@ -159,7 +159,7 @@ class BaseVideoUnderstandNode(IVideoUnderstandNode):
|
|||
for data in chat_record.details.values():
|
||||
if self.node.id == data['node_id'] and 'video_list' in data:
|
||||
video_list = data['video_list']
|
||||
if len(video_list) == 0 or data['dialogue_type'] == 'WORKFLOW':
|
||||
if video_list is None or len(video_list) == 0 or data['dialogue_type'] == 'WORKFLOW':
|
||||
return HumanMessage(content=chat_record.problem_text)
|
||||
file_id_list = []
|
||||
url_list = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue