From f6f7820a66dbd04e83bbdfac24088f0fe333a1d7 Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Wed, 18 Feb 2026 18:11:37 -0800 Subject: [PATCH] add UAE anti-discrimination category yaml --- .../uae_anti_discrimination.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/policy_templates/uae_anti_discrimination.yaml diff --git a/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/policy_templates/uae_anti_discrimination.yaml b/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/policy_templates/uae_anti_discrimination.yaml new file mode 100644 index 00000000000..b03c7fb41f0 --- /dev/null +++ b/litellm/proxy/guardrails/guardrail_hooks/litellm_content_filter/policy_templates/uae_anti_discrimination.yaml @@ -0,0 +1,71 @@ +# UAE Anti-Discrimination Compliance +# UAE Federal Decree-Law No. 2/2015 on combating discrimination and hatred +category_name: "uae_anti_discrimination" +description: "Blocks content violating UAE Federal anti-discrimination laws (Decree-Law No. 2/2015)" +default_action: "BLOCK" + +identifier_words: + - "Emirati" + - "Emiratis" + - "expatriate" + - "expat" + - "migrant worker" + - "laborer" + - "domestic worker" + - "nationality" + - "religion" + - "race" + - "ethnicity" + - "caste" + - "sect" + +additional_block_words: + - "inferior" + - "superior" + - "subhuman" + - "uncivilized" + - "backward" + - "primitive" + - "servant class" + - "slave" + - "slavery" + - "second class" + - "second-class citizen" + - "don't belong" + - "go back to" + - "deport" + - "hate" + - "hatred" + - "incite" + - "incitement" + - "sedition" + - "sectarian" + +always_block_keywords: + - keyword: "racial superiority" + severity: "high" + - keyword: "ethnic cleansing" + severity: "high" + - keyword: "sectarian violence" + severity: "high" + - keyword: "incite hatred" + severity: "high" + - keyword: "incite discrimination" + severity: "high" + - keyword: "religious hatred" + severity: "high" + +exceptions: + - "anti-discrimination" + - "equal rights" + - "diversity and inclusion" + - "tolerance" + - "coexistence" + - "UAE Year of Tolerance" + - "human rights" + - "what is" + - "explain" + - "history of" + - "education" + - "awareness" + - "compliance training"