Working version 6.2
This commit is contained in:
@@ -31,3 +31,20 @@ export async function getTeamSpendLogs(
|
||||
if (endDate) params.set("end_date", endDate);
|
||||
return litellmFetch(`/global/spend/logs?${params}`);
|
||||
}
|
||||
|
||||
export async function getTeamSpendLogsV2(
|
||||
teamId: string,
|
||||
startDate: string,
|
||||
endDate: string,
|
||||
page: number = 1,
|
||||
pageSize: number = 100
|
||||
) {
|
||||
const params = new URLSearchParams({
|
||||
team_id: teamId,
|
||||
start_date: `${startDate} 00:00:00`,
|
||||
end_date: `${endDate} 23:59:59`,
|
||||
page: String(page),
|
||||
page_size: String(pageSize),
|
||||
});
|
||||
return litellmFetch(`/spend/logs/v2?${params}`);
|
||||
}
|
||||
Reference in New Issue
Block a user