From 38cef1c58df1cbe7666fc7e75b64916b19b1f28c Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 15 Jul 2024 19:57:33 -0700 Subject: [PATCH] fix error from max file size --- litellm/proxy/common_utils/http_parsing_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/common_utils/http_parsing_utils.py b/litellm/proxy/common_utils/http_parsing_utils.py index fb14325512..7014b1e316 100644 --- a/litellm/proxy/common_utils/http_parsing_utils.py +++ b/litellm/proxy/common_utils/http_parsing_utils.py @@ -90,7 +90,7 @@ def check_file_size_under_limit( ) if file_content_size_in_mb > max_file_size_mb: raise ProxyException( - message="File size is too large. Please check your file size", + message=f"File size is too large. Please check your file size. Passed file size: {file_content_size_in_mb} MB. Max file size: {max_file_size_mb} MB", code=status.HTTP_400_BAD_REQUEST, type="bad_request", param="file",