~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
test(llm): cover endpoint override boundaries (#5493)
Ziyang Guo9dc5d6f9aa83
diff --git a/changelog.d/5488.bugfix.md b/changelog.d/5488.bugfix.mdnew file mode 100644index 0000000000..8dd90feda5--- /dev/null+++ b/changelog.d/5488.bugfix.md@@ -0,0 +1 @@+Lock the provider-specific validation boundary for explicit OpenAI endpoint URLs.diff --git a/tests/config/test_get_llm_dispatch_integration.py b/tests/config/test_get_llm_dispatch_integration.pyindex 8b467f5b4a..2ac17ac61d 100644--- a/tests/config/test_get_llm_dispatch_integration.py+++ b/tests/config/test_get_llm_dispatch_integration.py@@ -183,6 +183,31 @@ class TestOpenAIEndpointOverride:settings_snapshot=_snapshot(),)+ def test_non_string_explicit_url_is_rejected(self):+ with pytest.raises(+ ValueError, match="openai_endpoint_url must be a non-empty string"+ ):+ get_llm(+ provider="openai_endpoint",+ model_name="custom-model",+ openai_endpoint_url=123,+ settings_snapshot=_snapshot(),+ )++ def test_explicit_url_is_ignored_for_non_endpoint_provider(self):+ snapshot = _snapshot(**{"llm.ollama.url": "http://localhost:11434"})+ with patch(OLLAMA_CHAT, return_value=_fake_llm()) as mock_chat:+ get_llm(+ provider="ollama",+ model_name="llama3.1:8b",+ openai_endpoint_url=123,+ settings_snapshot=snapshot,+ )++ assert mock_chat.call_args.kwargs["base_url"] == (+ "http://localhost:11434"+ )+class TestLocalProviderDispatch:def test_lmstudio_appends_v1_suffix(self):