mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Add file name to prompt when processing images with doc (#4114)
This commit is contained in:
parent
d70d6e1fa7
commit
d92dcd722b
|
|
@ -44,7 +44,7 @@ def image_to_mode(image, doc: Document, images_list, get_image_id):
|
|||
if len([i for i in images_list if i.id == image_uuid]) == 0:
|
||||
image = File(id=image_uuid, file_name=part.filename, meta={'debug': False, 'content': part.blob})
|
||||
images_list.append(image)
|
||||
return f''
|
||||
return f'![{part.filename.replace("[", "").replace("]", "")}](./oss/file/{image_uuid})'
|
||||
return None
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue