litellm/tests/test_litellm/proxy/guardrails
Krish Dholakia a80a6c9f08
Add OCR guardrail_translation handler and support (#22145)
Enables guardrail processing for OCR requests and responses. Adds OCR handler under litellm/llms/mistral/ocr/guardrail_translation/ to process document URLs on input and extracted page markdown on output. Includes route-to-call-type mappings for /ocr and /v1/ocr endpoints. Adds 14 unit tests and 4 e2e tests verifying handler discovery, input/output processing, and integration with UnifiedLLMGuardrails.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 17:39:36 -08:00
..
guardrail_hooks Add OCR guardrail_translation handler and support (#22145) 2026-02-28 17:39:36 -08:00
test_guardrail_endpoints.py Fix: test_gaurdrails* 2026-02-26 12:10:49 +05:30
test_guardrail_registry.py Add Noma guardrails v2 based on custom guardrails (#21400) 2026-02-23 05:05:27 -08:00
test_init_guardrails.py Litellm fix GitHub action testing (#11163) 2025-05-26 14:41:42 -07:00
test_pillar_guardrails.py fix: properly reload litellm in setup_and_teardown fixture 2026-02-17 21:29:13 -03:00
test_prompt_security_guardrails.py fixing prompt-security's guardrail implementation (#19374) 2026-01-21 20:09:40 -08:00