mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
fix(logs): satisfy current lint gates
This commit is contained in:
parent
26593def56
commit
01dde98236
2 changed files with 4 additions and 3 deletions
|
|
@ -2918,7 +2918,7 @@ async def ui_view_spend_logs(
|
|||
if exclude_key_alias:
|
||||
sql_conditions.append(f"metadata->>'user_api_key_alias' IS DISTINCT FROM ${p}")
|
||||
sql_params.append(exclude_key_alias)
|
||||
p += 1
|
||||
p += 1 # rebind-ok: advances the existing shared SQL placeholder counter
|
||||
if error_code is not None:
|
||||
sql_conditions.append(f"metadata->'error_information'->>'error_code' = ${p}")
|
||||
sql_params.append(error_code)
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ export function useLogFilterLogic({
|
|||
|
||||
const userIdFilter = getFilterValue(columnFilters, LOG_FILTER_IDS.USER_ID);
|
||||
|
||||
return await uiSpendLogsCall({
|
||||
const spendLogsRequest: Parameters<typeof uiSpendLogsCall>[0] = {
|
||||
accessToken,
|
||||
start_date: window.start_date,
|
||||
end_date: window.end_date,
|
||||
|
|
@ -206,7 +206,8 @@ export function useLogFilterLogic({
|
|||
group_by_session: true,
|
||||
session_cursor: sessionCursor,
|
||||
},
|
||||
});
|
||||
};
|
||||
return await uiSpendLogsCall(spendLogsRequest);
|
||||
},
|
||||
enabled: !!accessToken && !!token && !!userRole && !!userID && activeTab === "request logs",
|
||||
refetchInterval: getLiveTailRefetchInterval(isLiveTail, pagination.pageIndex),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue