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]

fix(ui): remove misleading 'Custom' option mention from OpenAI endpoint tooltips (#16622)

sep-grindr40a9d72be7bc
diff --git a/ui/litellm-dashboard/src/components/add_model/provider_specific_fields.tsx b/ui/litellm-dashboard/src/components/add_model/provider_specific_fields.tsx
index 2f294611408..c34014436bb 100644
--- a/ui/litellm-dashboard/src/components/add_model/provider_specific_fields.tsx
+++ b/ui/litellm-dashboard/src/components/add_model/provider_specific_fields.tsx
@@ -68,10 +68,15 @@ const PROVIDER_CREDENTIAL_FIELDS: Record<Providers, ProviderCredentialField[]> =
{
key: "api_base",
label: "API Base",
- type: "text",
- placeholder: "https://api.openai.com/v1",
- tooltip: "Common endpoints: https://api.openai.com/v1, https://eu.api.openai.com, https://us.api.openai.com",
+ type: "select",
+ placeholder: "Select an endpoint",
+ tooltip: "Select from common OpenAI endpoints",
defaultValue: "https://api.openai.com/v1",
+ options: [
+ "https://api.openai.com/v1",
+ "https://us.api.openai.com/v1",
+ "https://eu.api.openai.com/v1",
+ ],
},
{
key: "organization",
@@ -89,10 +94,15 @@ const PROVIDER_CREDENTIAL_FIELDS: Record<Providers, ProviderCredentialField[]> =
{
key: "api_base",
label: "API Base",
- type: "text",
- placeholder: "https://api.openai.com/v1",
- tooltip: "Common endpoints: https://api.openai.com/v1, https://eu.api.openai.com, https://us.api.openai.com",
+ type: "select",
+ placeholder: "Select an endpoint",
+ tooltip: "Select from common OpenAI endpoints",
defaultValue: "https://api.openai.com/v1",
+ options: [
+ "https://api.openai.com/v1",
+ "https://us.api.openai.com/v1",
+ "https://eu.api.openai.com/v1",
+ ],
},
{
key: "organization",