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
fix sagemaker test
Ishaan Jaff0d374fb7c080
diff --git a/litellm/llms/sagemaker.py b/litellm/llms/sagemaker.pyindex dab8cb1a302..e3a58a7675c 100644--- a/litellm/llms/sagemaker.py+++ b/litellm/llms/sagemaker.py@@ -387,7 +387,7 @@ class SagemakerLLM(BaseAWSLLM):original_response=completion_response,additional_args={"complete_input_dict": _data},)- print_verbose(f"raw model_response: {response}")+ print_verbose(f"raw model_response: {completion_response}")## RESPONSE OBJECTtry:if isinstance(completion_response, list):diff --git a/litellm/tests/test_sagemaker.py b/litellm/tests/test_sagemaker.pyindex 155b07be060..a06a238a381 100644--- a/litellm/tests/test_sagemaker.py+++ b/litellm/tests/test_sagemaker.py@@ -84,7 +84,7 @@ async def test_completion_sagemaker(sync_mode):@pytest.mark.asyncio()[email protected]("sync_mode", [True])[email protected]("sync_mode", [False, True])async def test_completion_sagemaker_stream(sync_mode):try:litellm.set_verbose = False