forked from phoenix/litellm-mirror
(ui) new ui build
This commit is contained in:
parent
24ca4e310c
commit
22a22197c7
27 changed files with 42 additions and 44 deletions
|
@ -190,7 +190,7 @@ const UsagePage: React.FC<UsagePageProps> = ({
|
|||
const filtered_keys = top_keys.map((k: any) => ({
|
||||
key: (k["key_name"] || k["key_alias"] || k["api_key"]).substring(
|
||||
0,
|
||||
7
|
||||
10
|
||||
),
|
||||
spend: k["total_spend"],
|
||||
}));
|
||||
|
@ -243,9 +243,8 @@ const UsagePage: React.FC<UsagePageProps> = ({
|
|||
const filtered_keys = topKeysResponse["info"].map((k: any) => ({
|
||||
key: (
|
||||
k["key_name"] ||
|
||||
k["key_alias"] ||
|
||||
k["token"]
|
||||
).substring(0, 7),
|
||||
k["key_alias"]
|
||||
).substring(0, 10),
|
||||
spend: k["spend"],
|
||||
}));
|
||||
setTopKeys(filtered_keys);
|
||||
|
@ -267,7 +266,6 @@ const UsagePage: React.FC<UsagePageProps> = ({
|
|||
<div style={{ width: "100%" }} className="p-8">
|
||||
<ViewUserSpend
|
||||
userID={userID}
|
||||
userSpendData={[]}
|
||||
userRole={userRole}
|
||||
accessToken={accessToken}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue