forked from phoenix/litellm-mirror
build(ui): view_key_table.tsx
show unmapped keys in default team
This commit is contained in:
parent
fed8d61933
commit
6dbd73b619
2 changed files with 34 additions and 15 deletions
|
@ -2762,10 +2762,12 @@ async def generate_key_helper_fn(
|
|||
"model_max_budget": model_max_budget_json,
|
||||
"budget_id": budget_id,
|
||||
}
|
||||
|
||||
if (
|
||||
general_settings.get("allow_user_auth", False) == True
|
||||
or _has_user_setup_sso() == True
|
||||
):
|
||||
litellm.get_secret("DISABLE_KEY_NAME", False) == True
|
||||
): # allow user to disable storing abbreviated key name (shown in UI, to help figure out which key spent how much)
|
||||
pass
|
||||
else:
|
||||
key_data["key_name"] = f"sk-...{token[-4:]}"
|
||||
saved_token = copy.deepcopy(key_data)
|
||||
if isinstance(saved_token["aliases"], str):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue