fix(usage.tsx): do cost breakdown by model

This commit is contained in:
Krrish Dholakia 2024-02-10 16:10:48 -08:00
parent 525b0dc4fd
commit 38154b6e95
2 changed files with 12 additions and 14 deletions

View file

@ -178,6 +178,7 @@ export const userSpendLogsCall = async (
} else {
url = `${url}/?start_date=${startTime}&end_date=${endTime}`;
}
message.info("Making spend logs request");
const response = await fetch(url, {
method: "GET",
headers: {
@ -193,6 +194,7 @@ export const userSpendLogsCall = async (
const data = await response.json();
console.log(data);
message.success("Spend Logs received");
return data;
} catch (error) {
console.error("Failed to create key:", error);