mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_attachment_registry.py | ||
| test_condition_evaluator.py | ||
| test_pipeline_executor.py | ||
| test_policy_engine_endpoints.py | ||
| test_policy_matcher.py | ||
| test_policy_resolver.py | ||
| test_policy_validator.py | ||
| test_policy_versioning.py | ||
| test_policy_versioning_e2e.py | ||