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 test
yuneng-jiangef74f5edb104
diff --git a/ui/litellm-dashboard/src/components/UsagePage/components/EndpointUsage/components/EndpointUsageLineChart.test.tsx b/ui/litellm-dashboard/src/components/UsagePage/components/EndpointUsage/components/EndpointUsageLineChart.test.tsxindex ec12779a697..ec99825289c 100644--- a/ui/litellm-dashboard/src/components/UsagePage/components/EndpointUsage/components/EndpointUsageLineChart.test.tsx+++ b/ui/litellm-dashboard/src/components/UsagePage/components/EndpointUsage/components/EndpointUsageLineChart.test.tsx@@ -23,38 +23,12 @@ vi.mock("@tremor/react", async () => {return { Card, Title, LineChart };});-vi.mock("antd", async () => {- const React = await import("react");-- function Segmented({ options, value, onChange }: any) {- return React.createElement(- "div",- { "data-testid": "antd-segmented", "data-value": value },- options?.map((opt: any) =>- React.createElement(- "button",- {- key: opt.value,- onClick: () => onChange?.(opt.value),- "data-selected": value === opt.value,- },- opt.label,- ),- ),- );- }- (Segmented as any).displayName = "Segmented";-- return { Segmented };-});-describe("EndpointUsageLineChart", () => {it("should render", () => {render(<EndpointUsageLineChart />);expect(screen.getByTestId("tremor-card")).toBeInTheDocument();expect(screen.getByText("Endpoint Usage Trends")).toBeInTheDocument();- expect(screen.getByTestId("antd-segmented")).toBeInTheDocument();expect(screen.getByTestId("tremor-line-chart")).toBeInTheDocument();});});diff --git a/ui/litellm-dashboard/src/components/UsagePage/components/EndpointUsage/components/EndpointUsageLineChart.tsx b/ui/litellm-dashboard/src/components/UsagePage/components/EndpointUsage/components/EndpointUsageLineChart.tsxindex dd113423e4a..564eaa1fe85 100644--- a/ui/litellm-dashboard/src/components/UsagePage/components/EndpointUsage/components/EndpointUsageLineChart.tsx+++ b/ui/litellm-dashboard/src/components/UsagePage/components/EndpointUsage/components/EndpointUsageLineChart.tsx@@ -1,5 +1,5 @@-import React, { useMemo } from "react";import { Card, LineChart, Title } from "@tremor/react";+import { useMemo } from "react";import { DailyData } from "../../../types";interface EndpointUsageLineChartProps {