mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-17 00:17:16 +00:00
* fix(content_filter.py): fix filter on toxic keywords * feat: improve toxic/abusive language detection * fix: additional improvements to nsfw filters * feat: more improvements to nsfw filter * feat(content_filter.json): add new australia specific nsfw content filter ensure complete coverage for australia nsfw * fix: cleanup policy templates * fix(index.tsx): alert notice * fix(index.tsx): add disclaimer notice * feat(harmful_child_safety.yaml): new child safety content filter ensure we catch inappropriate, child-specific content * feat(policy_templates.json): add child safety and self harm filters * fix(content_filter.py): improve racial bias filter to use a similar identifier + block word pattern and cover a wider range of ethnicities * feat(policy_templates.json): add racial bias to nsfw policy template * feat: add json content viewer
679 lines
26 KiB
JSON
679 lines
26 KiB
JSON
[
|
|
{
|
|
"id": "advanced-au-pii-protection",
|
|
"title": "Advanced PII Protection (Australia)",
|
|
"description": "Protects Australian-specific identifiers, international employee data, financial information, credentials, protected class information, and industry-specific sensitive data.",
|
|
"icon": "ShieldCheckIcon",
|
|
"iconColor": "text-purple-500",
|
|
"iconBg": "bg-purple-50",
|
|
"guardrails": [
|
|
"au-pii-tax-identifiers",
|
|
"au-pii-passports",
|
|
"international-pii-identifiers",
|
|
"contact-information-pii",
|
|
"financial-pii",
|
|
"credentials-api-keys",
|
|
"network-infrastructure-pii",
|
|
"protected-class-information"
|
|
],
|
|
"complexity": "High",
|
|
"guardrailDefinitions": [
|
|
{
|
|
"guardrail_name": "au-pii-tax-identifiers",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"patterns": [
|
|
{
|
|
"pattern_type": "prebuilt",
|
|
"pattern_name": "au_tfn",
|
|
"action": "MASK"
|
|
},
|
|
{
|
|
"pattern_type": "prebuilt",
|
|
"pattern_name": "au_abn",
|
|
"action": "MASK"
|
|
},
|
|
{
|
|
"pattern_type": "prebuilt",
|
|
"pattern_name": "au_medicare",
|
|
"action": "MASK"
|
|
}
|
|
],
|
|
"pattern_redaction_format": "[{pattern_name}_REDACTED]"
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Masks Australian Tax File Numbers, Business Numbers, and Medicare Numbers"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "au-pii-passports",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"patterns": [
|
|
{
|
|
"pattern_type": "prebuilt",
|
|
"pattern_name": "passport_australia",
|
|
"action": "MASK"
|
|
}
|
|
],
|
|
"pattern_redaction_format": "[PASSPORT_REDACTED]"
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Masks Australian passport numbers"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "international-pii-identifiers",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"patterns": [
|
|
{"pattern_type": "prebuilt", "pattern_name": "us_ssn", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "us_ssn_no_dash", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "passport_us", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "passport_uk", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "passport_germany", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "passport_france", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "passport_netherlands", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "nl_bsn_contextual", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "passport_china", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "passport_india", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "passport_japan", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "passport_canada", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "br_cpf", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "br_cpf_unformatted", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "br_rg", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "br_cnpj", "action": "MASK"}
|
|
],
|
|
"pattern_redaction_format": "[{pattern_name}_REDACTED]"
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Masks international PII identifiers including passports and national IDs"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "contact-information-pii",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"patterns": [
|
|
{"pattern_type": "prebuilt", "pattern_name": "email", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "us_phone", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "br_phone_landline", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "br_phone_mobile", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "street_address", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "br_cep", "action": "MASK"}
|
|
],
|
|
"pattern_redaction_format": "[{pattern_name}_REDACTED]"
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Masks contact information including emails, phone numbers, and addresses"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "financial-pii",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"patterns": [
|
|
{"pattern_type": "prebuilt", "pattern_name": "visa", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "mastercard", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "amex", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "discover", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "credit_card", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "iban", "action": "MASK"}
|
|
],
|
|
"pattern_redaction_format": "[{pattern_name}_REDACTED]"
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Masks financial information including credit cards and bank account numbers"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "credentials-api-keys",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"patterns": [
|
|
{"pattern_type": "prebuilt", "pattern_name": "aws_access_key", "action": "BLOCK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "aws_secret_key", "action": "BLOCK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "github_token", "action": "BLOCK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "slack_token", "action": "BLOCK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "generic_api_key", "action": "BLOCK"}
|
|
],
|
|
"pattern_redaction_format": "[{pattern_name}_REDACTED]"
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks requests containing API keys and credentials (AWS, GitHub, Slack)"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "network-infrastructure-pii",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"patterns": [
|
|
{"pattern_type": "prebuilt", "pattern_name": "ipv4", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "ipv6", "action": "MASK"}
|
|
],
|
|
"pattern_redaction_format": "[INTERNAL_IP_REDACTED]"
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Masks IP addresses in requests"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "protected-class-information",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"patterns": [
|
|
{"pattern_type": "prebuilt", "pattern_name": "gender_sexual_orientation", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "race_ethnicity_national_origin", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "religion", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "age_discrimination", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "disability", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "marital_family_status", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "military_status", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "public_assistance", "action": "MASK"}
|
|
],
|
|
"pattern_redaction_format": "[PROTECTED_CLASS_INFO_REDACTED]"
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Masks protected class information for HR compliance and anti-discrimination"
|
|
}
|
|
}
|
|
],
|
|
"templateData": {
|
|
"policy_name": "advanced-pii-protection-australia",
|
|
"description": "Comprehensive PII detection and masking policy for Australia. Protects Australian-specific identifiers, international employee data, financial information, credentials, protected class information, and industry-specific sensitive data.",
|
|
"guardrails_add": [
|
|
"au-pii-tax-identifiers",
|
|
"au-pii-passports",
|
|
"international-pii-identifiers",
|
|
"contact-information-pii",
|
|
"financial-pii",
|
|
"credentials-api-keys",
|
|
"network-infrastructure-pii",
|
|
"protected-class-information"
|
|
],
|
|
"guardrails_remove": []
|
|
}
|
|
},
|
|
{
|
|
"id": "baseline-pii-protection",
|
|
"title": "Baseline PII Protection",
|
|
"description": "Baseline PII protection for internal tools and testing. Focuses on credentials and high-risk identifiers only. Suitable for non-sensitive internal use.",
|
|
"icon": "ShieldCheckIcon",
|
|
"iconColor": "text-blue-500",
|
|
"iconBg": "bg-blue-50",
|
|
"guardrails": [
|
|
"au-pii-tax-identifiers",
|
|
"credentials-api-keys",
|
|
"financial-pii"
|
|
],
|
|
"complexity": "Low",
|
|
"guardrailDefinitions": [
|
|
{
|
|
"guardrail_name": "au-pii-tax-identifiers",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"patterns": [
|
|
{"pattern_type": "prebuilt", "pattern_name": "au_tfn", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "au_abn", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "au_medicare", "action": "MASK"}
|
|
],
|
|
"pattern_redaction_format": "[{pattern_name}_REDACTED]"
|
|
},
|
|
"guardrail_info": {"description": "Masks Australian Tax File Numbers, Business Numbers, and Medicare Numbers"}
|
|
},
|
|
{
|
|
"guardrail_name": "credentials-api-keys",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"patterns": [
|
|
{"pattern_type": "prebuilt", "pattern_name": "aws_access_key", "action": "BLOCK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "aws_secret_key", "action": "BLOCK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "github_token", "action": "BLOCK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "slack_token", "action": "BLOCK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "generic_api_key", "action": "BLOCK"}
|
|
],
|
|
"pattern_redaction_format": "[{pattern_name}_REDACTED]"
|
|
},
|
|
"guardrail_info": {"description": "Blocks requests containing API keys and credentials (AWS, GitHub, Slack)"}
|
|
},
|
|
{
|
|
"guardrail_name": "financial-pii",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"patterns": [
|
|
{"pattern_type": "prebuilt", "pattern_name": "visa", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "mastercard", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "amex", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "discover", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "credit_card", "action": "MASK"},
|
|
{"pattern_type": "prebuilt", "pattern_name": "iban", "action": "MASK"}
|
|
],
|
|
"pattern_redaction_format": "[{pattern_name}_REDACTED]"
|
|
},
|
|
"guardrail_info": {"description": "Masks financial information including credit cards and bank account numbers"}
|
|
}
|
|
],
|
|
"templateData": {
|
|
"policy_name": "baseline-pii-protection",
|
|
"description": "Baseline PII protection for internal tools and testing. Focuses on credentials and high-risk identifiers only.",
|
|
"guardrails_add": [
|
|
"au-pii-tax-identifiers",
|
|
"credentials-api-keys",
|
|
"financial-pii"
|
|
],
|
|
"guardrails_remove": []
|
|
}
|
|
},
|
|
{
|
|
"id": "nsfw-content-filter-australia",
|
|
"title": "NSFW Content Filter (Australia)",
|
|
"description": "Blocks profanity, sexual content, NSFW requests, self-harm content, and child safety violations using English and Australian-specific slang. Protects against inappropriate content including sexual solicitation, explicit content, Australian profanity, self-harm, and content involving minors.",
|
|
"icon": "ShieldExclamationIcon",
|
|
"iconColor": "text-red-500",
|
|
"iconBg": "bg-red-50",
|
|
"guardrails": [
|
|
"nsfw-content-filter-english",
|
|
"nsfw-content-filter-australian",
|
|
"nsfw-self-harm-filter",
|
|
"nsfw-child-safety-filter",
|
|
"nsfw-racial-bias-filter"
|
|
],
|
|
"complexity": "Medium",
|
|
"guardrailDefinitions": [
|
|
{
|
|
"guardrail_name": "nsfw-content-filter-english",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harm_toxic_abuse",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks profanity, sexual content, slurs, and NSFW terms in English"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-content-filter-australian",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harm_toxic_abuse_au",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks Australian-specific slang and profanity (root, perv, bogan, wanker, etc.)"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-self-harm-filter",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harmful_self_harm",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks content related to self-harm, suicide, and eating disorders"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-child-safety-filter",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harmful_child_safety",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks inappropriate content involving minors using identifier + block word combinations"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-racial-bias-filter",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "bias_racial",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks racial and ethnic discrimination, hate speech, and supremacist content"
|
|
}
|
|
}
|
|
],
|
|
"templateData": {
|
|
"policy_name": "nsfw-content-filter-australia",
|
|
"description": "NSFW content filter for Australia. Blocks profanity, sexual content, inappropriate requests, self-harm content, child safety violations, and racial bias in English and Australian slang.",
|
|
"guardrails_add": [
|
|
"nsfw-content-filter-english",
|
|
"nsfw-content-filter-australian",
|
|
"nsfw-self-harm-filter",
|
|
"nsfw-child-safety-filter",
|
|
"nsfw-racial-bias-filter"
|
|
],
|
|
"guardrails_remove": []
|
|
}
|
|
},
|
|
{
|
|
"id": "nsfw-content-filter-basic",
|
|
"title": "NSFW Content Filter (Basic)",
|
|
"description": "Basic NSFW content filtering for English only. Blocks profanity, sexual content, slurs, solicitation, explicit requests, self-harm content, and child safety violations. Suitable for most applications requiring content moderation.",
|
|
"icon": "ShieldExclamationIcon",
|
|
"iconColor": "text-orange-500",
|
|
"iconBg": "bg-orange-50",
|
|
"guardrails": [
|
|
"nsfw-content-filter-english-only",
|
|
"nsfw-self-harm-filter-basic",
|
|
"nsfw-child-safety-filter-basic",
|
|
"nsfw-racial-bias-filter-basic"
|
|
],
|
|
"complexity": "Low",
|
|
"guardrailDefinitions": [
|
|
{
|
|
"guardrail_name": "nsfw-content-filter-english-only",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harm_toxic_abuse",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks profanity, sexual content, slurs, and NSFW terms. Includes 485+ keywords covering explicit content, solicitation, sexual behavior, and exploitation."
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-self-harm-filter-basic",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harmful_self_harm",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks content related to self-harm, suicide, and eating disorders"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-child-safety-filter-basic",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harmful_child_safety",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks inappropriate content involving minors using identifier + block word combinations"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-racial-bias-filter-basic",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "bias_racial",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks racial and ethnic discrimination, hate speech, and supremacist content"
|
|
}
|
|
}
|
|
],
|
|
"templateData": {
|
|
"policy_name": "nsfw-content-filter-basic",
|
|
"description": "Basic NSFW content filter. Blocks profanity, sexual content, inappropriate requests, self-harm content, child safety violations, and racial bias in English.",
|
|
"guardrails_add": [
|
|
"nsfw-content-filter-english-only",
|
|
"nsfw-self-harm-filter-basic",
|
|
"nsfw-child-safety-filter-basic",
|
|
"nsfw-racial-bias-filter-basic"
|
|
],
|
|
"guardrails_remove": []
|
|
}
|
|
},
|
|
{
|
|
"id": "nsfw-content-filter-all-regions",
|
|
"title": "NSFW Content Filter (All Regions)",
|
|
"description": "Comprehensive multi-language NSFW content filtering. Blocks profanity, sexual content, inappropriate requests, self-harm content, and child safety violations in English, Spanish, French, German, and Australian. Best for global applications.",
|
|
"icon": "ShieldExclamationIcon",
|
|
"iconColor": "text-purple-500",
|
|
"iconBg": "bg-purple-50",
|
|
"guardrails": [
|
|
"nsfw-filter-english",
|
|
"nsfw-filter-spanish",
|
|
"nsfw-filter-french",
|
|
"nsfw-filter-german",
|
|
"nsfw-filter-australian",
|
|
"nsfw-self-harm-filter-global",
|
|
"nsfw-child-safety-filter-global",
|
|
"nsfw-racial-bias-filter-global"
|
|
],
|
|
"complexity": "High",
|
|
"guardrailDefinitions": [
|
|
{
|
|
"guardrail_name": "nsfw-filter-english",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harm_toxic_abuse",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "English profanity, sexual content, slurs, and NSFW terms (485+ keywords)"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-filter-spanish",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harm_toxic_abuse_es",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Spanish profanity and offensive terms (68 keywords)"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-filter-french",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harm_toxic_abuse_fr",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "French profanity and offensive terms (91 keywords)"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-filter-german",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harm_toxic_abuse_de",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "German profanity and offensive terms (65 keywords)"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-filter-australian",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harm_toxic_abuse_au",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Australian slang and profanity (32 keywords: root, perv, bogan, wanker, etc.)"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-self-harm-filter-global",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harmful_self_harm",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks content related to self-harm, suicide, and eating disorders"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-child-safety-filter-global",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "harmful_child_safety",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks inappropriate content involving minors using identifier + block word combinations"
|
|
}
|
|
},
|
|
{
|
|
"guardrail_name": "nsfw-racial-bias-filter-global",
|
|
"litellm_params": {
|
|
"guardrail": "litellm_content_filter",
|
|
"mode": "pre_call",
|
|
"categories": [
|
|
{
|
|
"category": "bias_racial",
|
|
"enabled": true,
|
|
"action": "BLOCK",
|
|
"severity_threshold": "medium"
|
|
}
|
|
]
|
|
},
|
|
"guardrail_info": {
|
|
"description": "Blocks racial and ethnic discrimination, hate speech, and supremacist content"
|
|
}
|
|
}
|
|
],
|
|
"templateData": {
|
|
"policy_name": "nsfw-content-filter-all-regions",
|
|
"description": "Comprehensive multi-language NSFW content filter. Blocks profanity, inappropriate content, self-harm, child safety violations, and racial bias in English, Spanish, French, German, and Australian. Total coverage: 741+ keywords across all languages plus self-harm, child safety, and racial bias protection.",
|
|
"guardrails_add": [
|
|
"nsfw-filter-english",
|
|
"nsfw-filter-spanish",
|
|
"nsfw-filter-french",
|
|
"nsfw-filter-german",
|
|
"nsfw-filter-australian",
|
|
"nsfw-self-harm-filter-global",
|
|
"nsfw-child-safety-filter-global",
|
|
"nsfw-racial-bias-filter-global"
|
|
],
|
|
"guardrails_remove": []
|
|
}
|
|
}
|
|
]
|