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]

reanme toModelConnectionTest

Ishaan Jaffae75ce296644
diff --git a/ui/litellm-dashboard/src/components/add_model/add_model_tab.tsx b/ui/litellm-dashboard/src/components/add_model/add_model_tab.tsx
index 0994cddc2d3..e2115e84672 100644
--- a/ui/litellm-dashboard/src/components/add_model/add_model_tab.tsx
+++ b/ui/litellm-dashboard/src/components/add_model/add_model_tab.tsx
@@ -9,7 +9,7 @@ import AdvancedSettings from "./advanced_settings";
import { Providers, providerLogoMap, getPlaceholder } from "../provider_info_helpers";
import type { Team } from "../key_team_helpers/key_list";
import { CredentialItem } from "../networking";
-import ConnectionErrorDisplay from "./ConnectionErrorDisplay";
+import ConnectionErrorDisplay from "./model_connection_test";
import { TEST_MODES } from "./add_model_modes";
import { Row, Col } from "antd";
import { Text, TextInput } from "@tremor/react";
diff --git a/ui/litellm-dashboard/src/components/add_model/handle_add_model_submit.tsx b/ui/litellm-dashboard/src/components/add_model/handle_add_model_submit.tsx
index 54f79bd52d6..d54198854c8 100644
--- a/ui/litellm-dashboard/src/components/add_model/handle_add_model_submit.tsx
+++ b/ui/litellm-dashboard/src/components/add_model/handle_add_model_submit.tsx
@@ -2,7 +2,7 @@ import { message } from "antd";
import { provider_map, Providers } from "../provider_info_helpers";
import { modelCreateCall, Model, testConnectionRequest } from "../networking";
import React, { useState } from 'react';
-import ConnectionErrorDisplay from './ConnectionErrorDisplay';
+import ConnectionErrorDisplay from './model_connection_test';
export const prepareModelAddRequest = async (
formValues: Record<string, any>,
diff --git a/ui/litellm-dashboard/src/components/add_model/ConnectionErrorDisplay.tsx b/ui/litellm-dashboard/src/components/add_model/model_connection_test.tsx
similarity index 98%
rename from ui/litellm-dashboard/src/components/add_model/ConnectionErrorDisplay.tsx
rename to ui/litellm-dashboard/src/components/add_model/model_connection_test.tsx
index 00c9da97513..6c96fe318a4 100644
--- a/ui/litellm-dashboard/src/components/add_model/ConnectionErrorDisplay.tsx
+++ b/ui/litellm-dashboard/src/components/add_model/model_connection_test.tsx
@@ -6,7 +6,7 @@ import { prepareModelAddRequest } from "./handle_add_model_submit";
const { Text } = Typography;
-interface ConnectionErrorDisplayProps {
+interface ModelConnectionTestProps {
formValues: Record<string, any>;
accessToken: string;
testMode: string;
@@ -15,7 +15,7 @@ interface ConnectionErrorDisplayProps {
onTestComplete?: () => void;
}
-const ConnectionErrorDisplay: React.FC<ConnectionErrorDisplayProps> = ({
+const ModelConnectionTest: React.FC<ModelConnectionTestProps> = ({
formValues,
accessToken,
testMode,
@@ -255,4 +255,4 @@ ${formattedBody}
);
};
-export default ConnectionErrorDisplay;
\ No newline at end of file
+export default ModelConnectionTest;
\ No newline at end of file