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, 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; accessToken: string; testMode: string; @@ -15,7 +15,7 @@ interface ConnectionErrorDisplayProps { onTestComplete?: () => void; } -const ConnectionErrorDisplay: React.FC = ({ +const ModelConnectionTest: React.FC = ({ 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