litellm/tests/guardrails_tests
Krish Dholakia be0530a6b3
fix(unified_guardrail.py): correctly map a v1/messages call to the anthropic unified guardrail (#17424)
* fix(unified_guardrail.py): correctly map a v1/messages call to the anthropic unified guardrail

* fix: add more rigorous call type checks

* fix(anthropic_endpoints/endpoints.py): initialize logging object at the beginning of endpoint

ensures call id + trace id are emitted to guardrail api

* feat(anthropic/chat/guardrail_translation): support streaming guardrails

sample on every 5 chunks

* fix(openai/chat/guardrail_translation): support openai streaming guardrails

* fix: initial commit fixing output guardrails for responses api

* feat(openai/responses/guardrail_translation): handler.py - fix output checks on responses api

* fix(openai/responses/guardrail_translation/handler.py): ensure responses api guardrails work on streaming

* test: update tests

* test: update tests

* test: update tests

* fix(bedrock_guardrails.py): fix post call streaming iterator logic

* fix: fix return

* fix(bedrock_guardrails.py): fix
2025-12-03 20:54:56 -08:00
..
conftest.py [Feat] Guardrails - add logging for important status fields (#15090) 2025-09-30 18:38:07 -07:00
test_bedrock_guardrails.py fix(unified_guardrail.py): correctly map a v1/messages call to the anthropic unified guardrail (#17424) 2025-12-03 20:54:56 -08:00
test_custom_guardrail.py [Feat] Presidio Improvements - Allow adding presidio api base on UI, Test presidio on Test Key, fixes for running presidio hook (#10840) 2025-05-14 17:41:33 -07:00
test_dynamoai_guardrails.py [Feat] New Guardrail - Dynamo AI Guardrail (#15920) 2025-10-24 17:11:04 -07:00
test_guardrails_config.py fix: use fastuuid helper (#14903) 2025-09-25 15:47:01 -07:00
test_javelin_guardrails.py fix: reject status code and tests. 2025-09-28 16:56:28 +05:30
test_lakera_v2.py [Fix] LakeraAI v2 Guardrail - Ensure exception is raised correctly (#14867) 2025-09-24 10:55:56 -07:00
test_lasso_guardrails.py [Feat] New Guardrail - Dynamo AI Guardrail (#15920) 2025-10-24 17:11:04 -07:00
test_presidio_pii.py Add presidio_language yaml configuration support for guardrails (#11331) 2025-06-02 13:13:17 -07:00
test_tracing_guardrails.py test_standard_logging_payload_includes_guardrail_information 2025-11-06 17:28:27 -08:00
test_zscaler_ai_guard.py Add Zscaler AI Guard hook (#15691) 2025-11-11 15:34:27 -08:00