mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
feat: add EU AI Act guardrail config example
Example configuration showing how to enable EU AI Act Article 5 guardrail.
This commit is contained in:
parent
871bfcba53
commit
a0761db32d
1 changed files with 21 additions and 0 deletions
21
litellm/proxy/example_config_yaml/guardrails_eu_ai_act.yaml
Normal file
21
litellm/proxy/example_config_yaml/guardrails_eu_ai_act.yaml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
model_list:
|
||||
- model_name: gpt-4o-mini
|
||||
litellm_params:
|
||||
model: openai/gpt-4o-mini
|
||||
api_key: os.environ/OPENAI_API_KEY
|
||||
|
||||
guardrails:
|
||||
- guardrail_name: "eu-ai-act-article5"
|
||||
litellm_params:
|
||||
guardrail: litellm_content_filter
|
||||
mode: "pre_call"
|
||||
|
||||
# Load policy template
|
||||
categories:
|
||||
- category: "eu_ai_act_article5_prohibited_practices"
|
||||
category_file: "policy_templates/eu_ai_act_article5.yaml"
|
||||
enabled: true
|
||||
action: "BLOCK"
|
||||
|
||||
# That's it! No LLM router, no API keys, no costs.
|
||||
# This uses pure keyword-based conditional matching for zero-cost, instant detection.
|
||||
Loading…
Add table
Reference in a new issue