litellm/tests/unit/proxy/guardrails
ryan-crabbe-berri ad6d1f1465 fix(guardrails): let Gemini's own tools reach generic_guardrail_api guardrails
Gemini tools such as googleSearch or function_declarations carry no type key,
so building the guardrail request failed validation and the call 500ed (or went
out unscanned with fail_on_error false). type is now optional and stays off the
wire when absent, so OpenAI-format tools serialize exactly as before.
2026-10-16 10:22:41 -07:00
..
guardrail_hooks fix(guardrails): let Gemini's own tools reach generic_guardrail_api guardrails 2026-10-16 10:22:41 -07:00
__init__.py
test_auto_router_compression.py
test_content_filter_path_traversal.py
test_content_utils.py
test_custom_code_security.py
test_deferred_guardrail_logging.py refactor(proxy): expose public names for private proxy helpers (#45170) 2026-10-07 18:59:27 -07:00
test_guardrail_coverage.py test: move offline proxy auth, hook, spend and pass-through tests to tests/unit (#45568) 2026-10-09 09:49:13 -07:00
test_guardrail_endpoints.py fix(guardrails): record every content filter match in logging_only and offer the mode in the UI (#46673) 2026-10-16 00:37:03 -07:00
test_guardrail_initializers.py refactor(types): replace Any with proven types in 157 files (#44798) 2026-10-06 15:31:54 +00:00
test_guardrail_load_balancing.py test: migrate SDK and proxy-booting legacy CircleCI tests to their tiers (#45758) 2026-10-11 00:17:21 -07:00
test_guardrail_registry.py feat(guardrails): split logging_only_scope direction from input-failure policy (#45709) 2026-10-10 01:46:39 -07:00
test_init_guardrails.py fix(config): treat blank env values as unset so the proxy neither crash-loops nor silently drops a guardrail (#46341) 2026-10-14 12:49:31 -07:00
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
test_usage_tracking.py