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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(proxy): change check_file_size_under_limit to accept Collection[str]
AlexsanderHamir8a325530fc7d
diff --git a/litellm/proxy/common_utils/http_parsing_utils.py b/litellm/proxy/common_utils/http_parsing_utils.pyindex 33d432e8695..807b895bd03 100644--- a/litellm/proxy/common_utils/http_parsing_utils.py+++ b/litellm/proxy/common_utils/http_parsing_utils.py@@ -1,6 +1,6 @@import jsonimport re-from typing import Any, Dict, List, Optional+from typing import Any, Collection, Dict, List, Optionalimport orjsonfrom fastapi import Request, UploadFile, status@@ -149,7 +149,7 @@ def _safe_get_request_headers(request: Optional[Request]) -> dict:def check_file_size_under_limit(request_data: dict,file: UploadFile,- router_model_names: List[str],+ router_model_names: Collection[str],) -> bool:"""Check if any files passed in request are under max_file_size_mb