From 86b311eeca9af55f64f94da2e41d9dc32c2a3591 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Tue, 16 Jul 2024 20:34:56 -0700 Subject: [PATCH] fix set default value for max_file_size_mb --- litellm/proxy/common_utils/http_parsing_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litellm/proxy/common_utils/http_parsing_utils.py b/litellm/proxy/common_utils/http_parsing_utils.py index 72c901c152e..8db1e879470 100644 --- a/litellm/proxy/common_utils/http_parsing_utils.py +++ b/litellm/proxy/common_utils/http_parsing_utils.py @@ -56,6 +56,7 @@ def check_file_size_under_limit( file_contents_size = file.size or 0 file_content_size_in_mb = file_contents_size / (1024 * 1024) + max_file_size_mb = None if llm_router is not None and request_data["model"] in router_model_names: try: