mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
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:
parent
9a48c8e36a
commit
2ac5365e06
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue