mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(UI Logs) - add pagination + filtering by key name/team name (#7860)
* fix remove emoji on logs page * fix title of page * ui - get countryIP * ui lookup * ui - get country from ip address * show team and key alias on root * working team / key filter * working filters * ui filtering by key / team alias * simple search * fix add pagination on view logs page * add start / end time filters * add custom time filter
This commit is contained in:
parent
f60756c815
commit
f6a0bc8bdb
5 changed files with 453 additions and 42 deletions
|
@ -1513,6 +1513,7 @@ export const userSpendLogsCall = async (
|
|||
throw error;
|
||||
}
|
||||
};
|
||||
|
||||
export const uiSpendLogsCall = async (
|
||||
accessToken: String,
|
||||
api_key?: string,
|
||||
|
@ -1520,6 +1521,8 @@ export const uiSpendLogsCall = async (
|
|||
request_id?: string,
|
||||
start_date?: string,
|
||||
end_date?: string,
|
||||
page?: number,
|
||||
page_size?: number,
|
||||
) => {
|
||||
try {
|
||||
// Construct base URL
|
||||
|
@ -1532,6 +1535,9 @@ export const uiSpendLogsCall = async (
|
|||
if (request_id) queryParams.append('request_id', request_id);
|
||||
if (start_date) queryParams.append('start_date', start_date);
|
||||
if (end_date) queryParams.append('end_date', end_date);
|
||||
if (page) queryParams.append('page', page.toString());
|
||||
if (page_size) queryParams.append('page_size', page_size.toString());
|
||||
|
||||
// Append query parameters to URL if any exist
|
||||
const queryString = queryParams.toString();
|
||||
if (queryString) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue