Skip to content

Commit 091f771

Browse files
committed
fix: include document name in bytes_to_uploaded_file call for better file handling
1 parent 9368df5 commit 091f771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/flow/step_node/document_split_node/impl/base_document_split_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def execute(self, document_list, knowledge_id, split_strategy, paragraph_title_r
5050
get_buffer = FileBufferHandle().get_buffer
5151

5252
for doc in file_list:
53-
file_mem = bytes_to_uploaded_file(doc['content'].encode('utf-8'))
53+
file_mem = bytes_to_uploaded_file(doc['content'].encode('utf-8'), doc['name'])
5454
result = default_split_handle.handle(file_mem, patterns, with_filter, limit, get_buffer, self._save_image)
5555
# 统一处理结果为列表
5656
results = result if isinstance(result, list) else [result]

0 commit comments

Comments
 (0)