mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Add EU AI Act Article 5 template to policy templates
Adds the EU AI Act Article 5 - Prohibited Practices template to the policy templates JSON that the UI reads from. The template uses the eu_ai_act_article5_prohibited_practices category that was added in PR #21342. Blocks prompts requesting: - Social scoring systems - Emotion recognition in workplace/education - Biometric categorization for sensitive attributes - Predictive profiling and manipulation Shows up in the UI under EU region filter with High complexity.
This commit is contained in:
parent
63bb27ef62
commit
a5b2c08a5a
1 changed files with 41 additions and 0 deletions
|
|
@ -768,5 +768,46 @@
|
|||
],
|
||||
"guardrails_remove": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "eu-ai-act-article5",
|
||||
"title": "EU AI Act Article 5 — Prohibited Practices",
|
||||
"description": "EU AI Act Article 5 compliance for prohibited AI practices. Blocks requests related to social scoring, emotion recognition in workplace/education, biometric categorization, predictive profiling, manipulation, and vulnerability exploitation. Uses conditional matching (identifier word + context word).",
|
||||
"region": "EU",
|
||||
"icon": "ShieldExclamationIcon",
|
||||
"iconColor": "text-red-500",
|
||||
"iconBg": "bg-red-50",
|
||||
"guardrails": [
|
||||
"eu-ai-act-prohibited-practices"
|
||||
],
|
||||
"complexity": "High",
|
||||
"guardrailDefinitions": [
|
||||
{
|
||||
"guardrail_name": "eu-ai-act-prohibited-practices",
|
||||
"litellm_params": {
|
||||
"guardrail": "litellm_content_filter",
|
||||
"mode": "pre_call",
|
||||
"categories": [
|
||||
{
|
||||
"category": "eu_ai_act_article5_prohibited_practices",
|
||||
"enabled": true,
|
||||
"action": "BLOCK",
|
||||
"severity_threshold": "medium"
|
||||
}
|
||||
]
|
||||
},
|
||||
"guardrail_info": {
|
||||
"description": "Blocks EU AI Act Article 5 prohibited practices: social scoring systems, emotion recognition in workplace/education, biometric categorization for sensitive attributes, predictive profiling, manipulation, and vulnerability exploitation"
|
||||
}
|
||||
}
|
||||
],
|
||||
"templateData": {
|
||||
"policy_name": "eu-ai-act-article5",
|
||||
"description": "EU AI Act Article 5 compliance policy for prohibited AI practices. Blocks social scoring, emotion recognition in workplace/education, biometric categorization, predictive profiling, manipulation, and vulnerability exploitation.",
|
||||
"guardrails_add": [
|
||||
"eu-ai-act-prohibited-practices"
|
||||
],
|
||||
"guardrails_remove": []
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue