Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/litellm-dashboard/src/components/usage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
token: string | null;
userRole: string | null;
userID: string | null;
keys: any[] | null;

Check warning on line 61 in ui/litellm-dashboard/src/components/usage.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
premiumUser: boolean;
}

Expand All @@ -69,9 +69,9 @@
}

type CustomTooltipTypeBar = {
payload: any;

Check warning on line 72 in ui/litellm-dashboard/src/components/usage.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
active: boolean | undefined;
label: any;

Check warning on line 74 in ui/litellm-dashboard/src/components/usage.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
};

const customTooltip = (props: CustomTooltipTypeBar) => {
Expand Down Expand Up @@ -107,7 +107,7 @@
);
};

function getTopKeys(data: Array<{ [key: string]: unknown }>): any[] {

Check warning on line 110 in ui/litellm-dashboard/src/components/usage.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
const spendKeys: { key: string; spend: unknown }[] = [];

data.forEach((dict) => {
Expand All @@ -134,12 +134,12 @@

const UsagePage: React.FC<UsagePageProps> = ({ accessToken, token, userRole, userID, keys, premiumUser }) => {
const currentDate = new Date();
const [keySpendData, setKeySpendData] = useState<any[]>([]);

Check warning on line 137 in ui/litellm-dashboard/src/components/usage.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
const [topKeys, setTopKeys] = useState<any[]>([]);

Check warning on line 138 in ui/litellm-dashboard/src/components/usage.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
const [topModels, setTopModels] = useState<any[]>([]);

Check warning on line 139 in ui/litellm-dashboard/src/components/usage.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
const [topUsers, setTopUsers] = useState<any[]>([]);

Check warning on line 140 in ui/litellm-dashboard/src/components/usage.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
const [teamSpendData, setTeamSpendData] = useState<any[]>([]);

Check warning on line 141 in ui/litellm-dashboard/src/components/usage.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
const [topTagsData, setTopTagsData] = useState<any[]>([]);

Check warning on line 142 in ui/litellm-dashboard/src/components/usage.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Unexpected any. Specify a different type
const [allTagNames, setAllTagNames] = useState<string[]>([]);
const [uniqueTeamIds, setUniqueTeamIds] = useState<any[]>([]);
const [totalSpendPerTeam, setTotalSpendPerTeam] = useState<any[]>([]);
Expand Down Expand Up @@ -547,7 +547,7 @@
Please follow our guide to view usage when SpendLogs has more than 1M rows.
</Text>
<Button className="mt-4">
<a href="https://docs.litellm.ai/docs/proxy/spending_monitoring" target="_blank">
<a href="https://docs.litellm.ai/docs/proxy/cost_tracking" target="_blank">
View Usage Guide
</a>
</Button>
Expand Down
Loading