mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
docs(bedrock/files): document memory spike for IO uploads (Bedrock requires UTF-8 text)
This commit is contained in:
parent
8654dc6158
commit
c9e62b76c4
1 changed files with 6 additions and 0 deletions
|
|
@ -399,6 +399,12 @@ class BedrockFilesConfig(BaseAWSLLM, BaseFilesConfig):
|
|||
# IO[bytes] path (e.g. SpooledTemporaryFile from FastAPI UploadFile).
|
||||
# seek(0) is already called inside _get_content_from_openai_file, but we
|
||||
# handle this branch directly to surface a clear error for binary uploads.
|
||||
#
|
||||
# NOTE: Bedrock requires UTF-8 text content for SigV4 request signing
|
||||
# and does not support binary file uploads. We must materialize the
|
||||
# entire file in memory here — there is no streaming alternative.
|
||||
# Operators uploading large files to Bedrock should be aware that memory
|
||||
# usage will spike proportionally to file size at this point.
|
||||
extracted_file_data_content.seek(0)
|
||||
raw = extracted_file_data_content.read()
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue