Update ollama.py
diff --git a/llama_index/llms/ollama.py b/llama_index/llms/ollama.py
index a36f800445159..263f2b4f1b4c9 100644
--- a/llama_index/llms/ollama.py
+++ b/llama_index/llms/ollama.py
@@ -23,9 +23,7 @@
 
 
 class Ollama(CustomLLM):
-    base_url: str = "http://localhost:11434"
-    """Base url the model is hosted under."""
-
+    base_url: str = Field(description="Base url the model is hosted under.")
     model: str = Field(description="The Ollama model to use.")
     temperature: float = Field(description="The temperature to use for sampling.")
     context_window: int = Field(
@@ -42,6 +40,7 @@ class Ollama(CustomLLM):
     def __init__(
         self,
         model: str,
+        base_url: str = "http://localhost:11434",
         temperature: float = 0.75,
         additional_kwargs: Optional[Dict[str, Any]] = None,
         context_window: int = DEFAULT_CONTEXT_WINDOW,
@@ -56,6 +55,7 @@ def __init__(
         super().__init__(
             model=model,
             temperature=temperature,
+            base_url=base_url,
             additional_kwargs=additional_kwargs or {},
             context_window=context_window,
             prompt_key=prompt_key,



# Description

Enable base_url default value to be overwritten

Fixes # (issue)

## Type of Change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

- [ ] Added new unit/integration tests
- [ ] Added new notebook (that tests end-to-end)
- [x] I stared at the code and made sure it makes sense

# Suggested Checklist:

- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
