The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fixing build
yuneng-jiang5d01f14f94ed
diff --git a/ui/litellm-dashboard/src/components/activity_metrics.test.tsx b/ui/litellm-dashboard/src/components/activity_metrics.test.tsxindex 04c2e4ec597..85bcabcfda3 100644--- a/ui/litellm-dashboard/src/components/activity_metrics.test.tsx+++ b/ui/litellm-dashboard/src/components/activity_metrics.test.tsx@@ -25,12 +25,14 @@ vi.mock("@tremor/react", () => ({vi.mock("antd", () => {const CollapseComponent = ({ children }: { children: React.ReactNode }) => <div>{children}</div>;- CollapseComponent.Panel = ({ children, header }: { children: React.ReactNode; header: React.ReactNode }) => (+ const PanelComponent = ({ children, header }: { children: React.ReactNode; header: React.ReactNode }) => (<div><div>{header}</div><div>{children}</div></div>);+ PanelComponent.displayName = "Collapse.Panel";+ CollapseComponent.Panel = PanelComponent;return {Collapse: CollapseComponent,};diff --git a/ui/litellm-dashboard/src/components/activity_metrics.tsx b/ui/litellm-dashboard/src/components/activity_metrics.tsxindex f8535b8a7e2..7a387c26600 100644--- a/ui/litellm-dashboard/src/components/activity_metrics.tsx+++ b/ui/litellm-dashboard/src/components/activity_metrics.tsx@@ -1,12 +1,10 @@-import React from "react";-import { Card, Grid, Text, Title } from "@tremor/react";-import { AreaChart, BarChart } from "@tremor/react";-import { DailyData, ModelActivityData, KeyMetricWithMetadata, TopApiKeyData } from "./UsagePage/types";-import { Collapse } from "antd";import { formatNumberWithCommas } from "@/utils/dataUtils";+import { AreaChart, BarChart, Card, Grid, Text, Title } from "@tremor/react";+import { Collapse } from "antd";+import React from "react";+import { CustomLegend, CustomTooltip } from "./common_components/chartUtils";+import { DailyData, KeyMetricWithMetadata, ModelActivityData, TopApiKeyData } from "./UsagePage/types";import { valueFormatter } from "./UsagePage/utils/value_formatters";-import { CustomTooltip, CustomLegend } from "./common_components/chartUtils";-import { EntityType } from "./EntityUsageExport/types";interface ActivityMetricsProps {modelMetrics: Record<string, ModelActivityData>;