= ({
{model.input_cost
? model.input_cost
- : model.litellm_params.input_cost_per_token
+ : model.litellm_params.input_cost_per_token != null && model.litellm_params.input_cost_per_token != undefined
? (
Number(
model.litellm_params
@@ -2073,6 +2080,24 @@ const ModelDashboard: React.FC = ({
+
+
+
+ All Exceptions for {selectedModelGroup}
+
+
+
+
+
+
@@ -2091,15 +2116,7 @@ const ModelDashboard: React.FC = ({
- {/* */}
-
+
diff --git a/ui/litellm-dashboard/src/components/networking.tsx b/ui/litellm-dashboard/src/components/networking.tsx
index 4a53df12bac8..e5371f22e4b6 100644
--- a/ui/litellm-dashboard/src/components/networking.tsx
+++ b/ui/litellm-dashboard/src/components/networking.tsx
@@ -14,11 +14,12 @@ export interface Model {
export const modelCostMap = async () => {
try {
+ const url = proxyBaseUrl ? `${proxyBaseUrl}/get/litellm_model_cost_map` : `/get/litellm_model_cost_map`;
const response = await fetch(
- "https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json"
+ url
);
const jsonData = await response.json();
- console.log(`received data: ${jsonData}`);
+ console.log(`received litellm model cost data: ${jsonData}`);
return jsonData;
} catch (error) {
console.error("Failed to get model cost map:", error);
@@ -2405,7 +2406,6 @@ export const getProxyBaseUrlAndLogoutUrl = async (
if (!response.ok) {
const errorData = await response.text();
- message.error(errorData, 10);
throw new Error("Network response was not ok");
}
diff --git a/ui/litellm-dashboard/src/components/teams.tsx b/ui/litellm-dashboard/src/components/teams.tsx
index 9e5758a283d8..8b4b803b5637 100644
--- a/ui/litellm-dashboard/src/components/teams.tsx
+++ b/ui/litellm-dashboard/src/components/teams.tsx
@@ -151,6 +151,17 @@ const Team: React.FC = ({
+
+
+ daily
+ weekly
+ monthly
+
+
@@ -427,7 +438,7 @@ const Team: React.FC = ({
overflow: "hidden",
}}
>
- {team["max_budget"] ? team["max_budget"] : "No limit"}
+ {team["max_budget"] !== null && team["max_budget"] !== undefined ? team["max_budget"] : "No limit"}
= ({
+
+
+ daily
+ weekly
+ monthly
+
+
= ({
showLegend={true}
index="date"
categories={uniqueTeamIds}
- yAxisWidth={80}
- colors={["blue", "green", "yellow", "red", "purple"]}
-
+ yAxisWidth={80}
stack={true}
/>