From 18c5ec8ff735813b702cfbdfeebeaaa66ce2df97 Mon Sep 17 00:00:00 2001 From: AlexsanderHamir Date: Thu, 16 Oct 2025 11:12:13 -0700 Subject: [PATCH 1/2] Add missing env key --- docs/my-website/docs/proxy/config_settings.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/my-website/docs/proxy/config_settings.md b/docs/my-website/docs/proxy/config_settings.md index 4e440857261..627b1bb2374 100644 --- a/docs/my-website/docs/proxy/config_settings.md +++ b/docs/my-website/docs/proxy/config_settings.md @@ -752,6 +752,7 @@ router_settings: | SPEND_LOGS_URL | URL for retrieving spend logs | SPEND_LOG_CLEANUP_BATCH_SIZE | Number of logs deleted per batch during cleanup. Default is 1000 | SSL_CERTIFICATE | Path to the SSL certificate file +| SSL_ECDH_CURVE | ECDH curve for SSL/TLS key exchange (e.g., 'X25519' to disable PQC). | SSL_SECURITY_LEVEL | [BETA] Security level for SSL/TLS connections. E.g. `DEFAULT@SECLEVEL=1` | SSL_VERIFY | Flag to enable or disable SSL certificate verification | SSL_CERT_FILE | Path to the SSL certificate file for custom CA bundle From 8a325530fc7d49154d7e4961a02d4559f5403847 Mon Sep 17 00:00:00 2001 From: AlexsanderHamir Date: Thu, 16 Oct 2025 11:25:03 -0700 Subject: [PATCH 2/2] fix(proxy): change check_file_size_under_limit to accept Collection[str] Fixes mypy type error where router_model_names (a set) was incompatible with List[str] parameter type. Changed check_file_size_under_limit to accept Collection[str] instead of List[str] since the parameter is only used for membership checks, making it more flexible and avoiding unnecessary type conversions. Resolves: proxy/proxy_server.py:5107 arg-type error --- litellm/proxy/common_utils/http_parsing_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/common_utils/http_parsing_utils.py b/litellm/proxy/common_utils/http_parsing_utils.py index 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 json import re -from typing import Any, Dict, List, Optional +from typing import Any, Collection, Dict, List, Optional import orjson from 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