fix: The image of the image understanding node selects the image generated by the preceding node.
--bug=1050695 --user=刘瑞斌 【应用编排】图片理解节点的图片选择前置节点生成的图片,执行详情中加载失败 https://www.tapd.cn/57709429/s/1635547
This commit is contained in:
parent
42bd7e60a7
commit
418c87093d
@ -49,7 +49,7 @@ class BaseImageGenerateNode(IImageGenerateNode):
|
|||||||
self.context['image_list'] = [{'file_id': path.split('/')[-1], 'url': path} for path in file_urls]
|
self.context['image_list'] = [{'file_id': path.split('/')[-1], 'url': path} for path in file_urls]
|
||||||
answer = '\n'.join([f"" for path in file_urls])
|
answer = '\n'.join([f"" for path in file_urls])
|
||||||
return NodeResult({'answer': answer, 'chat_model': tti_model, 'message_list': message_list,
|
return NodeResult({'answer': answer, 'chat_model': tti_model, 'message_list': message_list,
|
||||||
'image': [{'file_id': path.split('/')[-1], 'file_url': path} for path in file_urls],
|
'image': [{'file_id': path.split('/')[-1], 'url': path} for path in file_urls],
|
||||||
'history_message': history_message, 'question': question}, {})
|
'history_message': history_message, 'question': question}, {})
|
||||||
|
|
||||||
def generate_history_ai_message(self, chat_record):
|
def generate_history_ai_message(self, chat_record):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user