fix(passthrough): address CI lint and regenerate dashboard API types

This commit is contained in:
Sameer Kankute
2026-06-12 10:31:03 +05:30
parent e1c41a3232
commit 3bf9ad75d3
3 changed files with 11 additions and 2 deletions
-1
View File
@@ -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
@@ -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,
+10
View File
@@ -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