From 3bf9ad75d36fa2a3ff358899b333af8f4a8a60b9 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Fri, 12 Jun 2026 10:31:03 +0530 Subject: [PATCH] fix(passthrough): address CI lint and regenerate dashboard API types --- litellm/passthrough/main.py | 1 - .../pass_through_endpoints/pass_through_endpoints.py | 2 +- ui/litellm-dashboard/src/lib/http/schema.d.ts | 10 ++++++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/litellm/passthrough/main.py b/litellm/passthrough/main.py index 27181caad8..c2a5501d62 100644 --- a/litellm/passthrough/main.py +++ b/litellm/passthrough/main.py @@ -20,7 +20,6 @@ from typing import ( import httpx from httpx._types import CookieTypes, QueryParamTypes, RequestFiles -import litellm from litellm._logging import verbose_logger from litellm.litellm_core_utils.get_llm_provider_logic import get_llm_provider from litellm.llms.custom_httpx.http_handler import AsyncHTTPHandler, HTTPHandler diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py index e38b8401cf..754aeebdc1 100644 --- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py +++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py @@ -1582,7 +1582,7 @@ async def _parse_request_data_by_content_type( return query_params_data, custom_body_data, file_data, stream -def create_pass_through_route( +def create_pass_through_route( # noqa: PLR0915 endpoint, target: str, custom_headers: Optional[Mapping[str, Any]] = None, diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts index 4aeb1cf3e8..ed973409b2 100644 --- a/ui/litellm-dashboard/src/lib/http/schema.d.ts +++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts @@ -22134,6 +22134,11 @@ export interface components { * @description Set-up pass-through endpoints for provider-specific endpoints. Docs - https://docs.litellm.ai/docs/proxy/pass_through */ pass_through_endpoints?: components["schemas"]["PassThroughGenericEndpoint"][] | null; + /** + * Pass Through Request Timeout + * @description Default upstream request timeout in seconds for native and custom pass-through endpoints that use pass_through_request. Defaults to 600 when unset. + */ + pass_through_request_timeout?: number | null; /** * Reject Clientside Metadata Tags * @description When set to True, rejects requests that contain client-side 'metadata.tags' to prevent users from influencing budgets by sending different tags. Tags can only be inherited from the API key metadata. @@ -27896,6 +27901,11 @@ export interface components { * @description The URL to which requests for this path should be forwarded. */ target: string; + /** + * Timeout + * @description Upstream request timeout in seconds for this pass-through endpoint. If unset, uses general_settings.pass_through_request_timeout (default 600). + */ + timeout?: number | null; }; /** * PassThroughGuardrailSettings