diff --git a/litellm/proxy/guardrails/guardrail_hooks/noma/noma.py b/litellm/proxy/guardrails/guardrail_hooks/noma/noma.py index c2e00b0c7c5..24ef66c4bee 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/noma/noma.py +++ b/litellm/proxy/guardrails/guardrail_hooks/noma/noma.py @@ -799,7 +799,7 @@ class NomaGuardrail(CustomGuardrail): or request_data.get("metadata", {}) .get("headers", {}) .get("x-noma-application-id") - or self.application_id, + or (user_auth.key_name if user_auth.key_name else self.application_id), "ipAddress": request_data.get("metadata", {}).get( "requester_ip_address", None ),