mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 修复图片理解历史记录为节点时图片没展示的问题
This commit is contained in:
parent
5d4f35da2e
commit
36755672ba
|
|
@ -115,7 +115,11 @@ class BaseImageUnderstandNode(IImageUnderstandNode):
|
|||
image_list = data['image_list']
|
||||
if len(image_list) == 0 or data['dialogue_type'] == 'WORKFLOW':
|
||||
return HumanMessage(content=chat_record.problem_text)
|
||||
return HumanMessage(content=data['question'])
|
||||
file_id = image_list[0]['file_id']
|
||||
return HumanMessage(content=[
|
||||
{'type': 'text', 'text': data['question']},
|
||||
{'type': 'image_url', 'image_url': {'url': f'/api/file/{file_id}'}},
|
||||
])
|
||||
return HumanMessage(content=chat_record.problem_text)
|
||||
|
||||
def get_history_message(self, history_chat_record, dialogue_number):
|
||||
|
|
|
|||
Loading…
Reference in New Issue