~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: advance API polling timeout clock (#7116)
LearningCircuitc4ce54e4308d
diff --git a/tests/api/test_client_extended.py b/tests/api/test_client_extended.pyindex 2c401bc655..e4fb3367fb 100644--- a/tests/api/test_client_extended.py+++ b/tests/api/test_client_extended.py@@ -353,11 +353,19 @@ class TestAPIOperations:client.get_settings()@patch("local_deep_research.api.client.SafeSession")- @patch("time.sleep")- def test_api_timeout_handling(self, mock_sleep, mock_session_cls):+ @patch("local_deep_research.api.client.time")+ def test_api_timeout_handling(self, mock_clock, mock_session_cls):"""Test timeout handling in wait_for_research"""from local_deep_research.api.client import LDRClient+ elapsed = [0.0]+ mock_clock.time.side_effect = lambda: elapsed[0]++ def advance_clock(seconds):+ elapsed[0] += seconds++ mock_clock.sleep.side_effect = advance_clock+mock_session = MagicMock()mock_session_cls.return_value = mock_session@@ -373,6 +381,9 @@ class TestAPIOperations:with pytest.raises(RuntimeError, match="timed out"):client.wait_for_research("123", timeout=1)+ mock_session.get.assert_called_once()+ mock_clock.sleep.assert_called_once_with(5)+@patch("local_deep_research.api.client.SafeSession")def test_api_response_parsing(self, mock_session_cls):"""Test API response JSON parsing"""