~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
fix: Allow empty model parameter to use defaults
LearningCircuiteaa6f1d4bd1b
diff --git a/src/local_deep_research/web/routes/research_routes.py b/src/local_deep_research/web/routes/research_routes.pyindex 660dec054c..62d51bf416 100644--- a/src/local_deep_research/web/routes/research_routes.py+++ b/src/local_deep_research/web/routes/research_routes.py@@ -191,10 +191,6 @@ def start_research():else:logger.debug(f"Using model from request: {model}")- # Validate that model is not empty string- if model == "":- return jsonify({"error": "Model parameter cannot be empty"}), 400-custom_endpoint = data.get("custom_endpoint")if not custom_endpoint and model_provider == "OPENAI_ENDPOINT":custom_endpoint = settings_manager.get_setting(diff --git a/tests/api_tests_with_login/pytest_tests/test_model_parameter.py b/tests/api_tests_with_login/pytest_tests/test_model_parameter.pyindex c93aab5c05..e542a20713 100644--- a/tests/api_tests_with_login/pytest_tests/test_model_parameter.py+++ b/tests/api_tests_with_login/pytest_tests/test_model_parameter.py@@ -53,14 +53,14 @@ def test_model_parameter_in_logs(auth_session, base_url):assert model_name_found, "Model name 'gemma3n:e2b' not found in any logs!"-def test_empty_model_parameter_fails(auth_session, base_url):- """Test that empty model parameter is rejected"""+def test_empty_model_parameter_allowed(auth_session, base_url):+ """Test that empty model parameter is allowed (uses default)"""session, csrf_token = auth_sessionresearch_data = {"query": "Test with empty model","search_engine": "auto",- "model": "", # Empty model+ "model": "", # Empty model should use default"model_provider": "OLLAMA","mode": "quick",}@@ -69,7 +69,7 @@ def test_empty_model_parameter_fails(auth_session, base_url):f"{base_url}/api/start_research", json=research_data)- assert response.status_code in [400, 422], (- f"Empty model should be rejected, got {response.status_code}"+ assert response.status_code in [200, 201, 202], (+ f"Empty model should be allowed (uses default), got {response.status_code}")- print("✓ Empty model parameter correctly rejected")+ print("✓ Empty model parameter correctly allowed (uses default)")