mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
chore: update file hashes for community
This commit is contained in:
parent
aba41c4a4b
commit
2de6bd2018
|
|
@ -124,7 +124,7 @@ class BaseVideoUnderstandNode(IVideoUnderstandNode):
|
|||
if self.node.id == val['node_id'] and 'video_list' in val:
|
||||
if val['dialogue_type'] == 'WORKFLOW':
|
||||
return chat_record.get_ai_message()
|
||||
return AIMessage(content=val['answer'] or '')
|
||||
return AIMessage(content=val.get('answer') or val.get('err_message') or '')
|
||||
return chat_record.get_ai_message()
|
||||
|
||||
def generate_history_human_message_for_details(self, chat_record):
|
||||
|
|
@ -138,6 +138,7 @@ class BaseVideoUnderstandNode(IVideoUnderstandNode):
|
|||
return HumanMessage(content=[
|
||||
{'type': 'text', 'text': data['question']},
|
||||
*[{'type': 'video_url', 'video_url': {'url': f'./oss/file/{file_id}'}} for file_id in file_id_list]
|
||||
|
||||
])
|
||||
return HumanMessage(content=chat_record.problem_text)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue