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 URL normalization for custom OpenAI endpoints. (#532)

Daniel Pettief6944834671
diff --git a/src/local_deep_research/config/llm_config.py b/src/local_deep_research/config/llm_config.py
index ac5134c717..2ac208c7c6 100644
--- a/src/local_deep_research/config/llm_config.py
+++ b/src/local_deep_research/config/llm_config.py
@@ -381,6 +381,7 @@ def get_llm(
openai_endpoint_url = get_db_setting(
"llm.openai_endpoint.url", "https://openrouter.ai/api/v1"
)
+ openai_endpoint_url = normalize_url(openai_endpoint_url)
llm = ChatOpenAI(
model=model_name,