mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
Use auth key name if there are no app id in in headers or in extra_data
This commit is contained in:
parent
b92cc2b2f9
commit
1557e2d4ce
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue