diff --git a/ui/litellm-dashboard/src/components/add_model/litellm_model_name.test.tsx b/ui/litellm-dashboard/src/components/add_model/litellm_model_name.test.tsx new file mode 100644 index 00000000000..f1fd3fecb37 --- /dev/null +++ b/ui/litellm-dashboard/src/components/add_model/litellm_model_name.test.tsx @@ -0,0 +1,30 @@ +import { render } from "@testing-library/react"; +import { Form } from "antd"; +import { describe, expect, it } from "vitest"; +import { getPlaceholder, Providers } from "../provider_info_helpers"; +import LiteLLMModelNameField from "./litellm_model_name"; + +describe("LitellmModelNameField", () => { + it("should render", () => { + const { getByText } = render( +
, + ); + expect(getByText("LiteLLM Model Name(s)")).toBeInTheDocument(); + }); + + it("should show Azure placeholder as 'my-deployment'", () => { + const { getByPlaceholderText, queryByPlaceholderText } = render( + , + ); + expect(getByPlaceholderText("my-deployment")).toBeInTheDocument(); + expect(queryByPlaceholderText("gpt-3.5-turbo")).toBeNull(); + }); +}); diff --git a/ui/litellm-dashboard/src/components/provider_info_helpers.tsx b/ui/litellm-dashboard/src/components/provider_info_helpers.tsx index 8d417190297..110be8e376b 100644 --- a/ui/litellm-dashboard/src/components/provider_info_helpers.tsx +++ b/ui/litellm-dashboard/src/components/provider_info_helpers.tsx @@ -176,7 +176,7 @@ export const getPlaceholder = (selectedProvider: string): string => { } else if (selectedProvider == Providers.Azure_AI_Studio) { return "azure_ai/command-r-plus"; } else if (selectedProvider == Providers.Azure) { - return "azure/my-deployment"; + return "my-deployment"; } else if (selectedProvider == Providers.Oracle) { return "oci/xai.grok-4"; } else if (selectedProvider == Providers.Snowflake) {