diff --git a/ui/litellm-dashboard/src/components/add_model/litellm_model_name.tsx b/ui/litellm-dashboard/src/components/add_model/litellm_model_name.tsx index 56ecfcd3d76..e637a11ebd9 100644 --- a/ui/litellm-dashboard/src/components/add_model/litellm_model_name.tsx +++ b/ui/litellm-dashboard/src/components/add_model/litellm_model_name.tsx @@ -1,7 +1,6 @@ import React from "react"; import { Form, Select as AntSelect } from "antd"; -import { TextInput, Text } from "@tremor/react"; -import { Row, Col } from "antd"; +import { Input } from "@/components/ui/input"; import { Providers } from "../provider_info_helpers"; interface LiteLLMModelNameFieldProps { @@ -79,6 +78,7 @@ const LiteLLMModelNameField: React.FC = ({ // Immediately update the model mappings const currentMappings = form.getFieldValue("model_mappings") || []; + // eslint-disable-next-line @typescript-eslint/no-explicit-any const updatedMappings = currentMappings.map((mapping: any) => { if (mapping.public_name === "custom" || mapping.litellm_model === "custom") { if (selectedProvider === Providers.Azure) { @@ -118,12 +118,14 @@ const LiteLLMModelNameField: React.FC = ({ {selectedProvider === Providers.Azure || selectedProvider === Providers.OpenAI_Compatible || selectedProvider === Providers.Ollama ? ( - <> - - + ) : providerModels.length > 0 ? ( = ({ style={{ width: "100%" }} /> ) : ( - + )} @@ -164,12 +166,19 @@ const LiteLLMModelNameField: React.FC = ({ modelArray.includes("custom") && ( - @@ -179,16 +188,14 @@ const LiteLLMModelNameField: React.FC = ({ }} - - - - - {selectedProvider === Providers.Azure - ? "Your deployment name will be saved as the public model name, and LiteLLM will use 'azure/deployment-name' internally" - : "The model name LiteLLM will send to the LLM API"} - - - +
+
+

+ {selectedProvider === Providers.Azure + ? "Your deployment name will be saved as the public model name, and LiteLLM will use 'azure/deployment-name' internally" + : "The model name LiteLLM will send to the LLM API"} +

+
); };