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]

Change placeholder for Azure in Add Model (#16597)

yuneng-jiangab8704f60df3
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(
+ <Form>
+ <LiteLLMModelNameField
+ selectedProvider={Providers.OpenAI}
+ providerModels={[]}
+ getPlaceholder={getPlaceholder}
+ />
+ </Form>,
+ );
+ expect(getByText("LiteLLM Model Name(s)")).toBeInTheDocument();
+ });
+
+ it("should show Azure placeholder as 'my-deployment'", () => {
+ const { getByPlaceholderText, queryByPlaceholderText } = render(
+ <Form>
+ <LiteLLMModelNameField selectedProvider={Providers.Azure} providerModels={[]} getPlaceholder={getPlaceholder} />
+ </Form>,
+ );
+ 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) {