Merge pull request #14690 from ARajan1084/bedrock_guardrail_logging_fix

fix: Amazon Bedrock incorrect guardrailResponse bug
This commit is contained in:
Krish Dholakia
2025-09-18 18:33:23 -07:00
committed by GitHub
@@ -24,7 +24,6 @@ from litellm._logging import verbose_proxy_logger
from litellm.caching import DualCache
from litellm.integrations.custom_guardrail import (
CustomGuardrail,
log_guardrail_information,
)
from litellm.llms.bedrock.base_aws_llm import BaseAWSLLM
from litellm.llms.custom_httpx.http_handler import (
@@ -518,7 +517,6 @@ class BedrockGuardrail(CustomGuardrail, BaseAWSLLM):
# This means all actions were ANONYMIZED or NONE, so don't raise exception
return False
@log_guardrail_information
async def async_pre_call_hook(
self,
user_api_key_dict: UserAPIKeyAuth,