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]

add ollama api base defaults (#10805)

Jugal D. Bhatt2b5a781fa4cd
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 7146ae2b995..bc826c27d34 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
@@ -241,7 +241,16 @@ const PROVIDER_CREDENTIAL_FIELDS: Record<Providers, ProviderCredentialField[]> =
tooltip: "You can provide the raw key or the environment variable (e.g. `os.environ/MY_SECRET_KEY`)."
}
],
- [Providers.Ollama]: [], // No specific fields needed
+ [Providers.Ollama]: [
+ {
+ key: "api_base",
+ label: "API Base",
+ placeholder: "http://localhost:11434",
+ defaultValue: "http://localhost:11434",
+ required: false,
+ tooltip: "The base URL for your Ollama server. Defaults to http://localhost:11434 if not specified."
+ }
+ ],
[Providers.Anthropic]: [{
key: "api_key",
label: "API Key",