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
Andrew Smitha92e99e9467e
diff --git a/litellm/llms/sagemaker/completion/handler.py b/litellm/llms/sagemaker/completion/handler.pyindex 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,)