Skip to content

Commit 2de6bd2

Browse files
committed
chore: update file hashes for community
1 parent aba41c4 commit 2de6bd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def generate_history_ai_message(self, chat_record):
124124
if self.node.id == val['node_id'] and 'video_list' in val:
125125
if val['dialogue_type'] == 'WORKFLOW':
126126
return chat_record.get_ai_message()
127-
return AIMessage(content=val['answer'] or '')
127+
return AIMessage(content=val.get('answer') or val.get('err_message') or '')
128128
return chat_record.get_ai_message()
129129

130130
def generate_history_human_message_for_details(self, chat_record):
@@ -138,6 +138,7 @@ def generate_history_human_message_for_details(self, chat_record):
138138
return HumanMessage(content=[
139139
{'type': 'text', 'text': data['question']},
140140
*[{'type': 'video_url', 'video_url': {'url': f'./oss/file/{file_id}'}} for file_id in file_id_list]
141+
141142
])
142143
return HumanMessage(content=chat_record.problem_text)
143144

0 commit comments

Comments
 (0)