From 1856a743fc59dc5aa35acbc3bed53e5da2f6db87 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Sun, 10 Aug 2025 14:07:39 +0800 Subject: [PATCH] style --- api/core/plugin/impl/tool.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/core/plugin/impl/tool.py b/api/core/plugin/impl/tool.py index 00e2faccd5..9d6d139dee 100644 --- a/api/core/plugin/impl/tool.py +++ b/api/core/plugin/impl/tool.py @@ -161,11 +161,12 @@ class PluginToolManager(BasePluginClient): del files[chunk_id] # Skip yielding this message raise ValueError( - f"File is too large exceeding the limit of {dify_config.TOOL_FILE_MAX_SIZE} bytes") + f"File is too large exceeding the limit of {dify_config.TOOL_FILE_MAX_SIZE} bytes" + ) # Append the blob data to the buffer files[chunk_id].data[ - files[chunk_id].bytes_written: files[chunk_id].bytes_written + len(blob_data) + files[chunk_id].bytes_written : files[chunk_id].bytes_written + len(blob_data) ] = blob_data files[chunk_id].bytes_written += len(blob_data) else: