From 8944b7fbb506860ebb4061740b60713e57f843df Mon Sep 17 00:00:00 2001 From: Ido Lavi Date: Wed, 19 Nov 2025 18:17:26 +0200 Subject: [PATCH] Fix --- litellm/proxy/guardrails/guardrail_hooks/noma/noma.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/guardrails/guardrail_hooks/noma/noma.py b/litellm/proxy/guardrails/guardrail_hooks/noma/noma.py index 9f54c4a63f3..3ae2d519c45 100644 --- a/litellm/proxy/guardrails/guardrail_hooks/noma/noma.py +++ b/litellm/proxy/guardrails/guardrail_hooks/noma/noma.py @@ -116,8 +116,9 @@ class NomaGuardrail(CustomGuardrail): "NOMA_API_BASE", NomaGuardrail._DEFAULT_API_BASE ) self.application_id = application_id or os.environ.get( - "NOMA_APPLICATION_ID", "litellm" + "NOMA_APPLICATION_ID" ) + self.default_application_id = "litellm" if monitor_mode is None: self.monitor_mode = ( @@ -800,7 +801,8 @@ class NomaGuardrail(CustomGuardrail): .get("headers", {}) .get("x-noma-application-id") or self.application_id - or user_auth.key_alias, + or user_auth.key_alias + or self.default_application_id, "ipAddress": request_data.get("metadata", {}).get( "requester_ip_address", None ),