Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: always get OLLAMA_BASE_URL from the env

hashedvikingb10daf24acd4
diff --git a/config.py b/config.py
index e54f83378a..2c043437b0 100644
--- a/config.py
+++ b/config.py
@@ -235,7 +235,8 @@ def get_llm(model_name=DEFAULT_MODEL, temperature=DEFAULT_TEMPERATURE):
)
else:
- return ChatOllama(model=model_name, base_url="http://localhost:11434", **common_params)
+ base_url = os.getenv("OLLAMA_BASE_URL", "http://localhost:11434")
+ return ChatOllama(model=model_name, base_url=base_url, **common_params)
def get_search():
diff --git a/web_search_engines/engines/search_engine_local.py b/web_search_engines/engines/search_engine_local.py
index f120857b54..9f05a2d320 100644
--- a/web_search_engines/engines/search_engine_local.py
+++ b/web_search_engines/engines/search_engine_local.py
@@ -105,7 +105,7 @@ class LocalEmbeddingManager:
if self.embedding_model_type == "ollama":
# Use Ollama for embeddings
if not self.ollama_base_url:
- self.ollama_base_url = "http://localhost:11434"
+ self.ollama_base_url = os.getenv("OLLAMA_BASE_URL", "http://localhost:11434")
logger.info(f"Initializing Ollama embeddings with model {self.embedding_model}")
return OllamaEmbeddings(