litellm/enterprise/enterprise_hooks
user abbefccad4
fix(guardrails): align banned_keywords + azure_content_safety call_type gates with runtime route_type
The hooks gated on ``call_type == "completion"`` but the proxy ingress
passes ``route_type`` straight through as ``call_type`` —
``"acompletion"`` for /v1/chat/completions and ``"aresponses"`` for
/v1/responses. Tests passed because they used the literal sync
``"completion"`` value, masking the gap.

Switch both hooks to ``is_text_content_call_type`` (matches the
canonical runtime values: completion / acompletion / aresponses) and
update existing tests to assert against runtime values, plus parametrize
a regression test that pins the gate.
2026-05-04 21:27:24 +00:00
..
__init__.py Add using managed vector store creds for vector store files endpoint 2026-02-13 10:33:49 +05:30
aporia_ai.py feat(audio_transcriptions/): calculate duration of audio file for cost calculation + feat (image_generations): cost tracking accuracy improved with output_format, quality, size values fixed per openai model 2025-11-08 16:24:31 -08:00
banned_keywords.py fix(guardrails): align banned_keywords + azure_content_safety call_type gates with runtime route_type 2026-05-04 21:27:24 +00:00
blocked_user_list.py Add key-level multi-instance tpm/rpm/max parallel request limiting (#10458) 2025-04-30 21:32:31 -07:00
google_text_moderation.py fix(guardrails): close mixed-list gap, drop dead code, rename helper 2026-05-01 04:10:04 +00:00
openai_moderation.py fix(guardrails): close mixed-list gap, drop dead code, rename helper 2026-05-01 04:10:04 +00:00