From cf284b7ebdd7bf24d07ea7da41e58acdf858cf18 Mon Sep 17 00:00:00 2001 From: Shreyansh Jain Date: Wed, 14 Oct 2026 14:33:46 +0530 Subject: [PATCH] test(proxy): cover the list-valued text completion prompt at the hook layer --- tests/unit/proxy/hooks/test_prompt_injection_detection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/proxy/hooks/test_prompt_injection_detection.py b/tests/unit/proxy/hooks/test_prompt_injection_detection.py index 6df1f6f8cf8..e68f2e20fa7 100644 --- a/tests/unit/proxy/hooks/test_prompt_injection_detection.py +++ b/tests/unit/proxy/hooks/test_prompt_injection_detection.py @@ -107,6 +107,7 @@ async def test_acompletion_call_type_allows_safe_prompt(): ("atranscription", {"model": "test-model", "prompt": INJECTION_ATTEMPT}), ("transcription", {"model": "test-model", "prompt": INJECTION_ATTEMPT}), ("atext_completion", {"model": "test-model", "prompt": INJECTION_ATTEMPT}), + ("atext_completion", {"model": "test-model", "prompt": [INJECTION_ATTEMPT]}), ("amoderation", {"model": "test-model", "input": INJECTION_ATTEMPT}), ], )