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
lint fix
=77e4008e7b89
diff --git a/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py b/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.pyindex 19c26234287..5813a6079dd 100644--- a/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py+++ b/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py@@ -24,7 +24,6 @@ from litellm._logging import verbose_proxy_loggerfrom litellm.caching import DualCachefrom litellm.integrations.custom_guardrail import (CustomGuardrail,- log_guardrail_information,)from litellm.llms.bedrock.base_aws_llm import BaseAWSLLMfrom litellm.llms.custom_httpx.http_handler import (@@ -111,6 +110,7 @@ class BedrockGuardrail(CustomGuardrail, BaseAWSLLM):)self.guardrailIdentifier = guardrailIdentifierself.guardrailVersion = guardrailVersion+ self.guardrail_provider = "bedrock"# store kwargs as optional_paramsself.optional_params = kwargs@@ -372,6 +372,7 @@ class BedrockGuardrail(CustomGuardrail, BaseAWSLLM):# Add guardrail information to request trace#########################################################self.add_standard_logging_guardrail_information_to_request_data(+ guardrail_provider=self.guardrail_provider,guardrail_json_response=response.json(),request_data=request_data or {},guardrail_status=self._get_bedrock_guardrail_response_status(