mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
* fix(guardrails): scan text on /guardrails/apply_guardrail for Azure Content Safety The two Azure Content Safety guardrails never implemented apply_guardrail, so the endpoint fell through to the base no-op and answered 200 with the caller's text echoed back, having scanned nothing. Implementing that method also flips the proxy's unified-vs-native dispatch, which would move request traffic off these guardrails' own hooks. Add an opt-out that keeps every lifecycle event on the native hooks, so only the endpoint changes. * test(guardrails): cover the remaining native-hook opt-out dispatch sites Adds regression tests for the parallel post-call path, the MCP post-call hook, and the policy engine step, so every read of the opt-out flag fails when removed. |
||
|---|---|---|
| .. | ||
| guardrail_hooks | ||
| test_content_filter_path_traversal.py | ||
| test_content_utils.py | ||
| test_custom_code_security.py | ||
| test_deferred_guardrail_logging.py | ||
| test_guardrail_coverage.py | ||
| test_guardrail_endpoints.py | ||
| test_guardrail_registry.py | ||
| test_init_guardrails.py | ||
| test_llm_as_a_judge.py | ||
| test_mcp_jwt_signer.py | ||
| test_pillar_guardrails.py | ||
| test_prompt_security_guardrails.py | ||
| test_qostodian_nexus_guardrail.py | ||
| test_usage_endpoints.py | ||