Skip to content

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]

address greptile review feedback (greploop iteration 3)

yuneng-jiangbbc120095e2d
diff --git a/ui/litellm-dashboard/src/components/AIHub/AgentHubTableColumns.test.tsx b/ui/litellm-dashboard/src/components/AIHub/AgentHubTableColumns.test.tsx
index 703a24d8d6f..083e67c297a 100644
--- a/ui/litellm-dashboard/src/components/AIHub/AgentHubTableColumns.test.tsx
+++ b/ui/litellm-dashboard/src/components/AIHub/AgentHubTableColumns.test.tsx
@@ -22,9 +22,17 @@ const mockAgent: AgentHubData = {
is_public: true,
};
-function TestTable({ data, publicPage = false }: { data: AgentHubData[]; publicPage?: boolean }) {
- const showModal = vi.fn();
- const copyToClipboard = vi.fn();
+function TestTable({
+ data,
+ publicPage = false,
+ showModal = vi.fn(),
+ copyToClipboard = vi.fn(),
+}: {
+ data: AgentHubData[];
+ publicPage?: boolean;
+ showModal?: ReturnType<typeof vi.fn>;
+ copyToClipboard?: ReturnType<typeof vi.fn>;
+}) {
const columns = getAgentHubTableColumns(showModal, copyToClipboard, publicPage);
const table = useReactTable({ data, columns, getCoreRowModel: getCoreRowModel() });
diff --git a/ui/litellm-dashboard/src/components/EntityUsageExport/ExportFormatSelector.test.tsx b/ui/litellm-dashboard/src/components/EntityUsageExport/ExportFormatSelector.test.tsx
index a88f9cb116c..d20d24992f6 100644
--- a/ui/litellm-dashboard/src/components/EntityUsageExport/ExportFormatSelector.test.tsx
+++ b/ui/litellm-dashboard/src/components/EntityUsageExport/ExportFormatSelector.test.tsx
@@ -27,9 +27,7 @@ describe("ExportFormatSelector", () => {
// Open the Ant Design Select dropdown
await user.click(screen.getByText("CSV (Excel, Google Sheets)"));
// Select JSON option from the dropdown
- const jsonOption = await screen.findByText("JSON (includes metadata)", {
- selector: ".ant-select-item-option-content",
- });
+ const jsonOption = await screen.findByText("JSON (includes metadata)");
await user.click(jsonOption);
expect(onChange).toHaveBeenCalledWith("json", expect.anything());
});