From d44f492874d4a2a471296080fca834166ef8382b Mon Sep 17 00:00:00 2001 From: lior-k Date: Thu, 30 Apr 2026 20:16:12 +0300 Subject: [PATCH] fix(types/guardrails): restore closing paren dropped in main merge Merge of main into feat-guardrails-alice-wonderfence dropped the closing `)` of the alice_wonderfence import, putting the module docstring inside an open parenthesis and breaking parse of litellm/types/guardrails.py. This cascaded into Black, recursive_detector, and ~20 unit-test jobs. Co-Authored-By: Claude Opus 4.7 (1M context) --- litellm/types/guardrails.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/types/guardrails.py b/litellm/types/guardrails.py index b9a04fe5e60..ae65af35275 100644 --- a/litellm/types/guardrails.py +++ b/litellm/types/guardrails.py @@ -40,6 +40,7 @@ from litellm.types.proxy.guardrails.guardrail_hooks.hiddenlayer import ( ) from litellm.types.proxy.guardrails.guardrail_hooks.alice_wonderfence import ( WonderFenceGuardrailConfigModel, +) """ Pydantic object defining how to set guardrails on litellm proxy @@ -100,6 +101,7 @@ class SupportedGuardrailIntegrations(Enum): LLM_AS_A_JUDGE = "llm_as_a_judge" ALICE_WONDERFENCE = "alice_wonderfence" + class Role(Enum): SYSTEM = "system" ASSISTANT = "assistant"