Skip to content

Commit 826858d

Browse files
committed
refactor: remove redundant parameter from bytes_to_uploaded_file call
1 parent 691cd8d commit 826858d

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
@@ -51,7 +51,7 @@ def execute(self, document_list, knowledge_id, split_strategy, paragraph_title_r
5151
for doc in file_list:
5252
get_buffer = FileBufferHandle().get_buffer
5353

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

0 commit comments

Comments
 (0)