diff --git a/litellm/proxy/guardrails/guardrail_hooks/aim.py b/litellm/proxy/guardrails/guardrail_hooks/aim.py index 9b0cd5f3cc..e1298b6301 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/aim.py +++ b/litellm/proxy/guardrails/guardrail_hooks/aim.py @@ -121,7 +121,7 @@ class AimGuardrail(CustomGuardrail): async def call_aim_guardrail_on_output( self, request_data: dict, output: str, hook: str - ) -> None: + ) -> Optional[str]: user_email = ( request_data.get("metadata", {}).get("headers", {}).get("x-aim-user-email") )