forked from phoenix/litellm-mirror
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;
|
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 {
|
try {
|
||||||
const modelMetricsResponse = await modelMetricsCall(
|
const modelMetricsResponse = await modelMetricsCall(
|
||||||
accessToken,
|
accessToken,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue