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
This commit is contained in:
mateo-berri 2026-09-04 19:16:47 -07:00
parent 46be4054de
commit 9b5205b62d

View file

@ -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,