The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Update handler.py to use prepared_request.body for input
Andrew Smith81a7cf0f44f0
diff --git a/litellm/llms/sagemaker/completion/handler.py b/litellm/llms/sagemaker/completion/handler.pyindex 4ca9fe09734..909caf73c3d 100644--- a/litellm/llms/sagemaker/completion/handler.py+++ b/litellm/llms/sagemaker/completion/handler.py@@ -308,7 +308,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,timeout=timeout,)@@ -356,7 +356,7 @@ class SagemakerLLM(BaseAWSLLM):self,api_base: str,headers: dict,- data: dict,+ data: str,logging_obj,client=None,):@@ -368,7 +368,7 @@ class SagemakerLLM(BaseAWSLLM):response = await client.post(api_base,headers=headers,- json=data,+ data=data,stream=True,)@@ -440,7 +440,7 @@ class SagemakerLLM(BaseAWSLLM):completion_stream = await self.make_async_call(api_base=prepared_request.url,headers=prepared_request.headers, # type: ignore- data=data,+ data=prepared_request.body,logging_obj=logging_obj,)streaming_response = CustomStreamWrapper(@@ -522,7 +522,7 @@ class SagemakerLLM(BaseAWSLLM):response = await async_handler.post(url=prepared_request.url,headers=prepared_request.headers, # type: ignore- json=data,+ data=prepared_request.body,timeout=timeout,)