File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 99from litellm ._logging import print_verbose , verbose_logger
1010from litellm .types .utils import StandardLoggingPayload
1111
12- MAX_S3_FILENAME_COMPONENT_LENGTH = 250
12+ MAX_S3_FILENAME_STEM_LENGTH = 250
1313
1414
1515class S3Logger :
@@ -188,9 +188,9 @@ def get_s3_object_key(
188188 start_time : datetime ,
189189 s3_file_name : str ,
190190) -> str :
191- if len (s3_file_name ) > MAX_S3_FILENAME_COMPONENT_LENGTH :
191+ if len (s3_file_name ) > MAX_S3_FILENAME_STEM_LENGTH :
192192 digest = hashlib .sha256 (s3_file_name .encode ("utf-8" )).hexdigest ()[:16 ]
193- prefix_length = MAX_S3_FILENAME_COMPONENT_LENGTH - len (digest ) - 1
193+ prefix_length = MAX_S3_FILENAME_STEM_LENGTH - len (digest ) - 1
194194 s3_file_name = f"{ s3_file_name [:prefix_length ]} _{ digest } "
195195
196196 s3_object_key = (
You can’t perform that action at this time.
0 commit comments