From 2b5a781fa4cdcc84f3d8c09da70ba70ec0590a9b Mon Sep 17 00:00:00 2001 From: "Jugal D. Bhatt" <55304795+jugaldb@users.noreply.github.com> Date: Wed, 14 May 2025 03:28:36 +0530 Subject: [PATCH] add ollama api base defaults (#10805) --- .../components/add_model/provider_specific_fields.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 7146ae2b99..bc826c27d3 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 = 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",