litellm/tests/guardrails_tests
Cole McIntosh 702e399d94
Add presidio_language yaml configuration support for guardrails (#11331)
* feat: Add presidio_language parameter for PII analysis configuration via yaml config files

- Introduced presidio_language parameter in guardrail_initializers and guardrail_hooks to allow language specification for Presidio PII analysis via yaml config files
- Updated PresidioPresidioConfigModelUserInterface to include presidio_language with a default value of "en".
- Added tests to verify language configuration functionality, ensuring correct language usage in analyze requests.

* docs: Enhance PII masking documentation with language support details

- Added information on configuring the default language for PII analysis using the `presidio_language` parameter in both the UI and YAML configuration.
- Included supported language codes (English, Spanish, German) and their precedence in language settings.
- Provided examples for default language configuration and per-request language overrides to clarify usage.
2025-06-02 13:13:17 -07:00
..
test_bedrock_guardrails.py Xai, VertexAI, Google AI Studio - live web search support in OpenAI format (#11251) 2025-05-31 14:26:16 -07:00
test_custom_guardrail.py [Feat] Presidio Improvements - Allow adding presidio api base on UI, Test presidio on Test Key, fixes for running presidio hook (#10840) 2025-05-14 17:41:33 -07:00
test_guardrails_config.py [Fix] List Guardrails - Show config.yaml guardrails on litellm ui (#10959) 2025-05-19 21:25:23 -07:00
test_lakera_v2.py [Feat] Add Lakera v2 Guardrail Support (#10880) 2025-05-16 17:08:21 -07:00
test_presidio_pii.py Add presidio_language yaml configuration support for guardrails (#11331) 2025-06-02 13:13:17 -07:00
test_tracing_guardrails.py [Feat] Add Tracing for guardrails in StandardLoggingPayload, Langfuse (#10890) 2025-05-16 10:47:12 -07:00