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 linting
Yuneng Jiangc40e459447d2
diff --git a/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py b/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.pyindex 067d3a007f2..b4b8e681133 100644--- a/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py+++ b/litellm/proxy/guardrails/guardrail_hooks/bedrock_guardrails.py@@ -702,14 +702,14 @@ class BedrockGuardrail(CustomGuardrail, BaseAWSLLM):"action": w.get("action"),})- for w in word_policy.get("managedWordLists") or []:- if w.get("action") == "BLOCKED":+ for mw in word_policy.get("managedWordLists") or []:+ if mw.get("action") == "BLOCKED":word_matches.append({"category": "managedWordLists",- "type": w.get("type"),- "match": w.get("match"),- "action": w.get("action"),+ "type": mw.get("type"),+ "match": mw.get("match"),+ "action": mw.get("action"),})if word_matches: