From b8542188195bdb3861e71b991461e8cd8203e46e Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Thu, 27 Nov 2025 12:33:02 -0800 Subject: [PATCH] mypy: fix mypy linting errors --- litellm/proxy/pass_through_endpoints/pass_through_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py index df4452f726e..780a3d6dcc6 100644 --- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py +++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py @@ -1171,7 +1171,7 @@ def create_pass_through_route( custom_body=final_custom_body, cost_per_request=cast(Optional[float], param_cost_per_request), custom_llm_provider=custom_llm_provider, - guardrails_config=param_guardrails, + guardrails_config=cast(Optional[dict], param_guardrails), ) return endpoint_func