mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
refactor: remove redundant Bedrock guardrail block handling
This commit is contained in:
parent
fcabc059ca
commit
b37076bf2a
1 changed files with 0 additions and 5 deletions
|
|
@ -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 guardrail
|
||||
|
||||
output_list = bedrock_response.get("output")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue