-
-
-
+
e.stopPropagation()}>
+
) : (
"-"
@@ -370,15 +345,10 @@ export const columns = (
minSize: 80,
cell: ({ row }) => {
const model = row.original;
- return (
-
- {model.model_info.db_model ? "DB Model" : "Config Model"}
-
+ return model.model_info.db_model ? (
+
+ ) : (
+
);
},
},
diff --git a/ui/litellm-dashboard/src/components/organization/organization_view.tsx b/ui/litellm-dashboard/src/components/organization/organization_view.tsx
index e1b8c6d5044..402cc33902f 100644
--- a/ui/litellm-dashboard/src/components/organization/organization_view.tsx
+++ b/ui/litellm-dashboard/src/components/organization/organization_view.tsx
@@ -1,6 +1,7 @@
import { useTeams } from "@/app/(dashboard)/hooks/teams/useTeams";
import { organizationKeys, useOrganization } from "@/app/(dashboard)/hooks/organizations/useOrganizations";
import { useQueryClient } from "@tanstack/react-query";
+import { MoneyCell } from "@/components/shared/table_cells";
import { formatNumberWithCommas, copyToClipboard as utilCopyToClipboard } from "@/utils/dataUtils";
import { createTeamAliasMap } from "@/utils/teamUtils";
import { ArrowLeftIcon } from "@heroicons/react/outline";
@@ -196,7 +197,7 @@ const OrganizationInfoView: React.FC
= ({
render: (_: unknown, record: Member) => {
const orgMember =
record.user_id != null ? (orgData.members || []).find((m) => m.user_id === record.user_id) : undefined;
- return ${formatNumberWithCommas(orgMember?.spend ?? 0, 4)};
+ return ;
},
},
{
diff --git a/ui/litellm-dashboard/src/components/organizations.tsx b/ui/litellm-dashboard/src/components/organizations.tsx
index 857a0a0c64c..edebc17087a 100644
--- a/ui/litellm-dashboard/src/components/organizations.tsx
+++ b/ui/litellm-dashboard/src/components/organizations.tsx
@@ -27,7 +27,7 @@ import {
import { Form, Input, Modal, Select as Select2, Tooltip } from "antd";
import { useQueryClient } from "@tanstack/react-query";
import React, { useState } from "react";
-import { formatNumberWithCommas } from "../utils/dataUtils";
+import { DateCell, IdCell, MoneyCell } from "@/components/shared/table_cells";
import DeleteResourceModal from "./common_components/DeleteResourceModal";
import TableIconActionButton from "./common_components/IconActionButton/TableIconActionButtons/TableIconActionButton";
import { getModelDisplayName } from "./key_team_helpers/fetch_available_models_team_key";
@@ -263,30 +263,22 @@ const OrganizationsTable: React.FC = ({
.map((org: Organization) => (
-
-
-
-
-
+
{org.organization_alias}
- {org.created_at ? new Date(org.created_at).toLocaleDateString() : "N/A"}
+
- {formatNumberWithCommas(org.spend, 4)}
- {org.litellm_budget_table?.max_budget !== null &&
- org.litellm_budget_table?.max_budget !== undefined
- ? org.litellm_budget_table?.max_budget
- : "No limit"}
+
+
+
+
= ({
{
header: "ID",
accessorKey: "id",
- cell: (info: any) => (
-
- info.row.original.id && setSelectedEndpointId(info.row.original.id)}
- >
- {info.row.original.id}
-
-
- ),
+ cell: (info: any) => ,
},
{
header: "Path",
@@ -192,7 +184,9 @@ const PassThroughSettings: React.FC = ({
),
accessorKey: "auth",
- cell: (info: any) =>