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
refactor: remove redundant Bedrock guardrail block handling
Yuta Saitob37076bf2a5c
diff --git a/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py b/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.pyindex c8cef6e2790..59032189438 100644--- a/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py+++ b/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py@@ -1304,11 +1304,6 @@ class BedrockGuardrail(CustomGuardrail, BaseAWSLLM):request_data=request_data,)- if bedrock_response.get("action") == "BLOCKED":- raise Exception(- f"Content blocked by Bedrock guardrail: {bedrock_response.get('reason', 'Unknown reason')}"- )-# Apply any masking that was applied by the guardrailoutput_list = bedrock_response.get("output")