mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-08 03:08:45 +00:00
use key alias instead of key name
This commit is contained in:
parent
1557e2d4ce
commit
0fa67ac1a2
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 (user_auth.key_name if user_auth.key_name else self.application_id),
|
||||
or (user_auth.key_alias if user_auth.key_alias else (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