mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-13 23:11:40 +00:00
* fix(zscaler_ai_guard): return 400 on guardrail block * fix(zscaler_ai_guard): don't log error on intentional BLOCK A BLOCK is expected guardrail behavior, not a failure. Before this fix, raising HTTPException inside the try block caused the generic except to log it as "Failed to apply guardrail", producing spurious error-level noise for every normal block event. Added except HTTPException: raise before the generic handler (matching the existing pattern in make_zscaler_ai_guard_api_call), and a regression test that asserts logger.error is not called on a BLOCK. --------- Co-authored-by: yucheng-berri <yucheng@berri.ai> |
||
|---|---|---|
| .. | ||
| conftest.py | ||
| test_akto_guardrails.py | ||
| test_bedrock_guardrails.py | ||
| test_custom_guardrail.py | ||
| test_deepkeep_guardrails.py | ||
| test_dynamoai_guardrails.py | ||
| test_eu_ai_act_article5.py | ||
| test_eu_ai_act_french_3_scenarios.py | ||
| test_guardrail_load_balancing.py | ||
| test_guardrails_config.py | ||
| test_javelin_guardrails.py | ||
| test_lakera_v2.py | ||
| test_lasso_guardrails.py | ||
| test_presidio_pii.py | ||
| test_semantic_guard.py | ||
| test_sg_mas_ai_guardrails.py | ||
| test_sg_pdpa_guardrails.py | ||
| test_tracing_guardrails.py | ||
| test_zscaler_ai_guard.py | ||