From e13a10bbdd152928f6045ebd8805138ff68b6659 Mon Sep 17 00:00:00 2001 From: Rohit Panda Date: Wed, 23 Apr 2025 18:10:04 +0000 Subject: [PATCH] Fix linting issues --- .../proxy/pass_through_endpoints/pass_through_endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py index d438d9ad6a..43a84ecab0 100644 --- a/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py +++ b/litellm/proxy/pass_through_endpoints/pass_through_endpoints.py @@ -409,7 +409,7 @@ class HttpPassThroughEndpointHelpers: url=url, headers=headers, params=requested_query_params, - data=json_str + data=json_str.encode() ) return response @@ -589,7 +589,7 @@ async def pass_through_request( # noqa: PLR0915 req = async_client.build_request( "POST", url, - data=json_str, + data=json_str.encode(), params=requested_query_params, headers=headers, )