From 20a4df16d8d22419b4429e572e02ea11ae25b02c Mon Sep 17 00:00:00 2001 From: Deepanshu Pal <40927968+DeepanshuPal@users.noreply.github.com> Date: Fri, 2 Oct 2026 11:45:34 +0530 Subject: [PATCH] fix(proxy): keep route logging signature, suppress one unknown-arg with reason --- litellm/proxy/pass_through_endpoints/streaming_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/pass_through_endpoints/streaming_handler.py b/litellm/proxy/pass_through_endpoints/streaming_handler.py index 630b87d4cb9..dc1129f961b 100644 --- a/litellm/proxy/pass_through_endpoints/streaming_handler.py +++ b/litellm/proxy/pass_through_endpoints/streaming_handler.py @@ -280,7 +280,7 @@ class PassThroughStreamingHandler: litellm_logging_obj: LiteLLMLoggingObj, passthrough_success_handler_obj: PassThroughEndpointLogging, url_route: str, - request_body: dict[str, object], + request_body: dict, endpoint_type: EndpointType, start_time: datetime, raw_bytes: Sequence[bytes], @@ -320,7 +320,7 @@ class PassThroughStreamingHandler: await PassThroughStreamingHandler.schedule_stream_failure_logging( litellm_logging_obj=litellm_logging_obj, endpoint_type=endpoint_type, - request_body=request_body, + request_body=request_body, # pyright: ignore[reportUnknownArgumentType] # request_body is an untyped dict in this signature raw_bytes=raw_bytes, exception=AnthropicError(status_code=error_status_code, message=error_message), stream_context=PassThroughStreamContext(