Skip to content

Commit d92dcd7

Browse files
authored
fix: Add file name to prompt when processing images with doc (#4114)
1 parent d70d6e1 commit d92dcd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/common/handle/impl/text/doc_split_handle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def image_to_mode(image, doc: Document, images_list, get_image_id):
4444
if len([i for i in images_list if i.id == image_uuid]) == 0:
4545
image = File(id=image_uuid, file_name=part.filename, meta={'debug': False, 'content': part.blob})
4646
images_list.append(image)
47-
return f'![](./oss/file/{image_uuid})'
47+
return f'![{part.filename.replace("[", "").replace("]", "")}](./oss/file/{image_uuid})'
4848
return None
4949
return None
5050

0 commit comments

Comments
 (0)