mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-08 08:08:37 +00:00
chore: removing comment to match repo styling
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
parent
dbc3dbd920
commit
36ea1efa4d
1 changed files with 0 additions and 4 deletions
|
|
@ -111,10 +111,6 @@ class AzureContentSafetyPromptShieldGuardrail(AzureGuardrailBase, CustomGuardrai
|
|||
input_type: Literal["request", "response"],
|
||||
logging_obj: Optional["LiteLLMLoggingObj"] = None,
|
||||
) -> GenericGuardrailAPIInputs:
|
||||
# Prompt Shield is detect-only and has no post_call hook, but the
|
||||
# ad-hoc /apply_guardrail endpoint may pass input_type="response".
|
||||
# The Azure text:shieldPrompt API accepts any text, so we scan
|
||||
# regardless of direction rather than silently skipping.
|
||||
for text in inputs.get("texts") or []:
|
||||
if text:
|
||||
await self.async_make_request(user_prompt=text)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue