From 9b5205b62dbdb5386fbcde9d97ab1f75fa4c7695 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Fri, 4 Sep 2026 19:16:47 -0700 Subject: [PATCH] refactor(files): import MAX_FILE_LIST_LIMIT from litellm.constants in the managed files hook The enterprise hook reached the constant through the common_utils re-export, which no longer defines it, so point it at the constant's new home --- enterprise/litellm_enterprise/proxy/hooks/managed_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enterprise/litellm_enterprise/proxy/hooks/managed_files.py b/enterprise/litellm_enterprise/proxy/hooks/managed_files.py index 748ab5dd26a..cb3c2936b49 100644 --- a/enterprise/litellm_enterprise/proxy/hooks/managed_files.py +++ b/enterprise/litellm_enterprise/proxy/hooks/managed_files.py @@ -27,6 +27,7 @@ import litellm from litellm import Router, verbose_logger from litellm._uuid import uuid from litellm.caching.caching import DualCache +from litellm.constants import MAX_FILE_LIST_LIMIT from litellm.integrations.custom_logger import CustomLogger from litellm.litellm_core_utils.prompt_templates.common_utils import ( extract_file_metadata, @@ -47,7 +48,6 @@ from litellm.proxy._types import ( ) from litellm.proxy.openai_files_endpoints.common_utils import ( FILE_LIST_CONTINUATION_CHUNK_SIZE, - MAX_FILE_LIST_LIMIT, _is_base64_encoded_unified_file_id, apply_unified_file_ids, decode_model_from_file_id,