Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Merge remote-tracking branch 'origin/litellm_internal_staging' into litellm_lit_6975_bedrock_files_delete_list

mateo-berri69608a29db86
diff --cc enterprise/litellm_enterprise/proxy/hooks/managed_files.py
index cb3c2936b49,bc1eb6cebc2..7a871e6e65d
--- a/enterprise/litellm_enterprise/proxy/hooks/managed_files.py
+++ b/enterprise/litellm_enterprise/proxy/hooks/managed_files.py
@@@ -47,7 -46,9 +47,8 @@@ from litellm.proxy._types import
UserAPIKeyAuth,
)
from litellm.proxy.openai_files_endpoints.common_utils import (
+ BATCH_CREATE_HIDDEN_PARAM,
FILE_LIST_CONTINUATION_CHUNK_SIZE,
- MAX_FILE_LIST_LIMIT,
_is_base64_encoded_unified_file_id,
apply_unified_file_ids,
decode_model_from_file_id,
diff --cc litellm/proxy/openai_files_endpoints/common_utils.py
index 4b4a99f849a,b1f282a0978..38a907892b4
--- a/litellm/proxy/openai_files_endpoints/common_utils.py
+++ b/litellm/proxy/openai_files_endpoints/common_utils.py
@@@ -15,7 -15,7 +15,8 @@@ from typing import
runtime_checkable,
)
+ from litellm.batches.batch_utils import batch_cost_is_final
+from litellm.constants import MAX_FILE_LIST_LIMIT
from litellm.proxy._types import ProxyException
from litellm.repositories.table_repositories import (
ManagedFileRepository,
@@@ -34,8 -34,12 +35,10 @@@ if TYPE_CHECKING
from litellm.types.utils import LiteLLMBatch
-MAX_FILE_LIST_LIMIT: Final = 10000
-
FILE_LIST_CONTINUATION_CHUNK_SIZE: Final = 500
+ BATCH_CREATE_HIDDEN_PARAM: Final = "batch_create"
+
def validate_file_list_limit(limit: int | None) -> None:
"""Reject a ``limit`` outside the range OpenAI documents for GET /v1/files."""