Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix: update stale docstring to match guardrail voicing behavior

Julio Quinteros Pro2ac5365e06f5
diff --git a/tests/test_litellm/litellm_core_utils/test_realtime_streaming.py b/tests/test_litellm/litellm_core_utils/test_realtime_streaming.py
index 56c1cfa8515..7d38a5cc80a 100644
--- a/tests/test_litellm/litellm_core_utils/test_realtime_streaming.py
+++ b/tests/test_litellm/litellm_core_utils/test_realtime_streaming.py
@@ -379,7 +379,8 @@ async def test_realtime_guardrail_blocks_prompt_injection():
"""
Test that when a transcription event containing prompt injection arrives from the
backend, a registered guardrail blocks it — sending a warning to the client
- and NOT sending response.create to the backend.
+ and voicing the guardrail violation message via response.cancel +
+ conversation.item.create + response.create.
"""
import litellm
from litellm.integrations.custom_guardrail import CustomGuardrail