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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| aporia_ai.py | ||
| banned_keywords.py | ||
| blocked_user_list.py | ||
| google_text_moderation.py | ||
| openai_moderation.py | ||