mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix - analytics use last hour of endTime and first hr startTime
This commit is contained in:
parent
016b8294b0
commit
0c808c8afa
1 changed files with 10 additions and 0 deletions
|
|
@ -924,6 +924,16 @@ const ModelDashboard: React.FC<ModelDashboardProps> = ({
|
|||
selected_customer = null;
|
||||
}
|
||||
|
||||
// make startTime and endTime to last hour of the day
|
||||
startTime.setHours(0);
|
||||
startTime.setMinutes(0);
|
||||
startTime.setSeconds(0);
|
||||
|
||||
endTime.setHours(23);
|
||||
endTime.setMinutes(59);
|
||||
endTime.setSeconds(59);
|
||||
|
||||
|
||||
try {
|
||||
const modelMetricsResponse = await modelMetricsCall(
|
||||
accessToken,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue