mirror of
https://github.com/langgenius/dify.git
synced 2026-03-29 00:10:33 +08:00
update
This commit is contained in:
parent
7f2e18be0c
commit
d90e30d4b6
@ -160,11 +160,12 @@ class PluginToolManager(BasePluginClient):
|
||||
# Delete the file if it's too large
|
||||
del files[chunk_id]
|
||||
# Skip yielding this message
|
||||
raise ValueError("File is too large which reached the limit of 30MB")
|
||||
raise ValueError(
|
||||
f"File is too large which reached 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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user