From a92e99e9467e5148eec13084cc61dd3aff7a716c Mon Sep 17 00:00:00 2001 From: Andrew Smith <101757907+andjsmi@users.noreply.github.com> Date: Tue, 18 Mar 2025 10:23:32 +1100 Subject: [PATCH] Update handler.py to use prepared_request.body --- litellm/llms/sagemaker/completion/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/sagemaker/completion/handler.py b/litellm/llms/sagemaker/completion/handler.py index 4aff5f5d71b..4ca9fe09734 100644 --- a/litellm/llms/sagemaker/completion/handler.py +++ b/litellm/llms/sagemaker/completion/handler.py @@ -213,7 +213,7 @@ class SagemakerLLM(BaseAWSLLM): sync_response = sync_handler.post( url=prepared_request.url, headers=prepared_request.headers, # type: ignore - json=data, + data=prepared_request.body, stream=stream, )