From a0761db32db98812d6e13af3f17d13938064494a Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Mon, 16 Feb 2026 14:14:36 -0800 Subject: [PATCH] feat: add EU AI Act guardrail config example Example configuration showing how to enable EU AI Act Article 5 guardrail. --- .../guardrails_eu_ai_act.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 litellm/proxy/example_config_yaml/guardrails_eu_ai_act.yaml diff --git a/litellm/proxy/example_config_yaml/guardrails_eu_ai_act.yaml b/litellm/proxy/example_config_yaml/guardrails_eu_ai_act.yaml new file mode 100644 index 00000000000..4418b8aa8d2 --- /dev/null +++ b/litellm/proxy/example_config_yaml/guardrails_eu_ai_act.yaml @@ -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.