litellm/tests/test_litellm/proxy/guardrails
Dominic Fallows 2ffe8ee204
fix(presidio): handle empty content and error dict responses (#17489)
- Skip empty/whitespace text before calling Presidio API
- Handle error dict responses gracefully (e.g., {'error': 'No text provided'})
- Add defensive error handling for invalid result items
- Add comprehensive test coverage for empty content scenarios

Fixes crash in tool/function calling where assistant messages have empty content.
2025-12-05 15:45:19 -08:00
..
guardrail_hooks fix(presidio): handle empty content and error dict responses (#17489) 2025-12-05 15:45:19 -08:00
test_guardrail_endpoints.py test_patch_guardrail_endpoint 2025-11-07 22:09:52 -08:00
test_guardrail_registry.py added test for updating in memory guardrails 2025-09-17 17:16:49 -07:00
test_init_guardrails.py Litellm fix GitHub action testing (#11163) 2025-05-26 14:41:42 -07:00
test_pillar_guardrails.py feat(pillar): add automatic LiteLLM context headers (#17076) 2025-11-25 19:35:39 -08:00
test_prompt_security_guardrails.py Prompt security litellm (#16365) 2025-11-24 11:44:20 -08:00