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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(ui): distinguish hosted and local vLLM in the provider dropdown
mateo-berriae2a5e147264
diff --git a/litellm/proxy/public_endpoints/provider_create_fields.json b/litellm/proxy/public_endpoints/provider_create_fields.jsonindex e24e5b21583..ab13773614a 100644--- a/litellm/proxy/public_endpoints/provider_create_fields.json+++ b/litellm/proxy/public_endpoints/provider_create_fields.json@@ -2980,7 +2980,7 @@},{"provider": "Hosted_Vllm",- "provider_display_name": "vllm",+ "provider_display_name": "Hosted vLLM","litellm_provider": "hosted_vllm","credential_fields": [{@@ -3008,7 +3008,7 @@},{"provider": "VLLM",- "provider_display_name": "Vllm",+ "provider_display_name": "Local vLLM","litellm_provider": "vllm","credential_fields": [{diff --git a/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py b/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.pyindex e99bdfb5c35..03d228cc732 100644--- a/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py+++ b/tests/test_litellm/proxy/public_endpoints/test_public_endpoints.py@@ -243,6 +243,33 @@ def test_bedrock_mantle_provider_fields():assert fields_by_key["api_base"]["field_type"] == "text"+def test_vllm_provider_display_names_are_distinct():+ """Hosted and local vLLM must not share a dropdown label.++ The Add Model provider dropdown is driven by /public/providers/fields.+ Both entries previously rendered as near-identical "vllm"/"Vllm" rows+ with the same logo, so admins could not tell them apart.+ """+ app_instance = FastAPI()+ app_instance.include_router(router)+ test_client = TestClient(app_instance)++ response = test_client.get("/public/providers/fields")+ assert response.status_code == 200+ providers = response.json()++ hosted = next((p for p in providers if p["provider"] == "Hosted_Vllm"), None)+ local = next((p for p in providers if p["provider"] == "VLLM"), None)+ assert hosted is not None, "Hosted vLLM provider entry not found"+ assert local is not None, "Local vLLM provider entry not found"++ assert hosted["provider_display_name"] == "Hosted vLLM"+ assert local["provider_display_name"] == "Local vLLM"+ assert hosted["provider_display_name"].casefold() != local["provider_display_name"].casefold()+ assert hosted["litellm_provider"] == "hosted_vllm"+ assert local["litellm_provider"] == "vllm"++def test_nvidia_riva_provider_fields():app_instance = FastAPI()app_instance.include_router(router)diff --git a/ui/litellm-dashboard/src/components/provider_info_helpers.test.tsx b/ui/litellm-dashboard/src/components/provider_info_helpers.test.tsxindex b163a6b341c..e9bb63dd964 100644--- a/ui/litellm-dashboard/src/components/provider_info_helpers.test.tsx+++ b/ui/litellm-dashboard/src/components/provider_info_helpers.test.tsx@@ -94,6 +94,16 @@ describe("provider_info_helpers", () => {expect(result.displayName).toBe(Providers.ZAI);});+ it("should give hosted_vllm and vllm distinct display names", () => {+ const hosted = getProviderLogoAndName("hosted_vllm");+ const local = getProviderLogoAndName("vllm");+ expect(hosted.displayName).toBe("Hosted vLLM");+ expect(local.displayName).toBe("Local vLLM");+ expect(hosted.displayName.toLowerCase()).not.toBe(local.displayName.toLowerCase());+ expect(hosted.logo).toBe(providerLogoMap[Providers.Hosted_Vllm]);+ expect(local.logo).toBe(providerLogoMap[Providers.VLLM]);+ });+it("should resolve the nvidia_riva provider value to the Nvidia Riva display name and logo", () => {const result = getProviderLogoAndName("nvidia_riva");expect(result.displayName).toBe(Providers.NVIDIA_RIVA);diff --git a/ui/litellm-dashboard/src/components/provider_info_helpers.tsx b/ui/litellm-dashboard/src/components/provider_info_helpers.tsxindex ae311070c07..ad6d044eb7b 100644--- a/ui/litellm-dashboard/src/components/provider_info_helpers.tsx+++ b/ui/litellm-dashboard/src/components/provider_info_helpers.tsx@@ -110,7 +110,7 @@ export enum Providers {GradientAI = "GradientAI",Groq = "Groq",HEROKU = "Heroku",- Hosted_Vllm = "vllm",+ Hosted_Vllm = "Hosted vLLM",HUGGINGFACE = "Huggingface",HYPERBOLIC = "Hyperbolic",Infinity = "Infinity",@@ -162,7 +162,7 @@ export enum Providers {VERCEL_AI_GATEWAY = "Vercel Ai Gateway",Vertex_AI = "Vertex AI (Anthropic, Gemini, etc.)",VERTEX_AI_BETA = "Vertex Ai Beta",- VLLM = "Vllm",+ VLLM = "Local vLLM",VolcEngine = "VolcEngine",Voyage = "Voyage AI",WANDB = "Wandb",