fix: update stale docstring to match guardrail voicing behavior

Addresses Greptile review feedback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Julio Quinteros Pro 2026-02-27 23:04:43 -03:00
parent 9a48c8e36a
commit 2ac5365e06

View file

@ -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