This commit is contained in:
Bowen Liang 2025-08-10 14:07:39 +08:00
parent 76883751eb
commit 1856a743fc
1 changed files with 3 additions and 2 deletions

View File

@ -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: