mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
fix linting
This commit is contained in:
parent
909247785e
commit
c40e459447
1 changed files with 5 additions and 5 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue