From 784ceaad0d448542f90ae145b79f4618ccab5ba7 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 4 Sep 2024 16:33:36 -0700 Subject: [PATCH] rename type --- .../proxy/pass_through_endpoints/pass_through_endpoints.py | 4 ++-- litellm/proxy/pass_through_endpoints/types.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py index e62eea17e6..e36a36d528 100644 --- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py +++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py @@ -37,7 +37,7 @@ from litellm.proxy.auth.user_api_key_auth import user_api_key_auth from .streaming_handler import chunk_processor from .success_handler import PassThroughEndpointLogging -from .types import EndpointType, PassthroughStandardLoggingObject +from .types import EndpointType, PassthroughStandardLoggingPayload router = APIRouter() @@ -366,7 +366,7 @@ async def pass_through_request( litellm_call_id=str(uuid.uuid4()), function_id="1245", ) - passthrough_logging_payload = PassthroughStandardLoggingObject( + passthrough_logging_payload = PassthroughStandardLoggingPayload( url=str(url), request_body=_parsed_body, ) diff --git a/litellm/proxy/pass_through_endpoints/types.py b/litellm/proxy/pass_through_endpoints/types.py index c719f165de..b3aa4418d0 100644 --- a/litellm/proxy/pass_through_endpoints/types.py +++ b/litellm/proxy/pass_through_endpoints/types.py @@ -7,7 +7,7 @@ class EndpointType(str, Enum): GENERIC = "generic" -class PassthroughStandardLoggingObject(TypedDict, total=False): +class PassthroughStandardLoggingPayload(TypedDict, total=False): """ Standard logging payload for all pass through endpoints """