forked from phoenix/litellm-mirror
fix(usage.tsx): do cost breakdown by model
This commit is contained in:
parent
525b0dc4fd
commit
38154b6e95
2 changed files with 12 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue