Skip to content

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]

Use proper attribute for sagemaker request (#11362)

Tom Bocklischd7982bb0af71
diff --git a/litellm/llms/sagemaker/completion/handler.py b/litellm/llms/sagemaker/completion/handler.py
index ebd96ac5b15..3d4108776ca 100644
--- a/litellm/llms/sagemaker/completion/handler.py
+++ b/litellm/llms/sagemaker/completion/handler.py
@@ -626,7 +626,7 @@ class SagemakerLLM(BaseAWSLLM):
inference_params[k] = v
#### HF EMBEDDING LOGIC
- data = json.dumps({"text_inputs": input}).encode("utf-8")
+ data = json.dumps({"inputs": input}).encode("utf-8")
## LOGGING
request_str = f"""