~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: Address Copilot code review feedback
LearningCircuiteaf9226dcf8e
diff --git a/src/local_deep_research/llm/providers/implementations/google.py b/src/local_deep_research/llm/providers/implementations/google.pyindex 3fd9d00653..9136670d6d 100644--- a/src/local_deep_research/llm/providers/implementations/google.py+++ b/src/local_deep_research/llm/providers/implementations/google.py@@ -51,6 +51,8 @@ class GoogleProvider(OpenAICompatibleProvider):import requests# Use the native Gemini API endpoint (not OpenAI-compatible)+ # Note: Google's API requires the key as a query parameter, not in headers+ # This is their documented approach: https://ai.google.dev/api/resturl = f"https://generativelanguage.googleapis.com/v1beta/models?key={api_key}"response = requests.get(url, timeout=10)diff --git a/src/local_deep_research/llm/providers/implementations/lmstudio.py b/src/local_deep_research/llm/providers/implementations/lmstudio.pyindex 1eb25948f9..6406b88b58 100644--- a/src/local_deep_research/llm/providers/implementations/lmstudio.py+++ b/src/local_deep_research/llm/providers/implementations/lmstudio.py@@ -42,8 +42,8 @@ class LMStudioProvider(OpenAICompatibleProvider):# LM Studio uses /v1 endpointkwargs["base_url"] = f"{lmstudio_url}/v1"- # LM Studio doesn't require a real API key, just use a placeholder- kwargs["api_key"] = "lm-studio" # pragma: allowlist secret+ # LM Studio doesn't require a real API key, just use a clearly fake placeholder+ kwargs["api_key"] = "not-required" # pragma: allowlist secret# Use parent's create_llm but bypass API key checkreturn super()._create_llm_instance(model_name, temperature, **kwargs)diff --git a/src/local_deep_research/web/routes/settings_routes.py b/src/local_deep_research/web/routes/settings_routes.pyindex 8409f632a2..3dac2e08c3 100644--- a/src/local_deep_research/web/routes/settings_routes.py+++ b/src/local_deep_research/web/routes/settings_routes.py@@ -31,6 +31,9 @@ from ..services.settings_service import ()from ..utils.templates import render_template_with_defaultsfrom ..server_config import sync_from_settings+from ...llm.providers.implementations.custom_openai_endpoint import (+ CustomOpenAIEndpointProvider,+)# Create a Blueprint for settingssettings_bp = Blueprint("settings", __name__, url_prefix="/settings")@@ -1171,10 +1174,6 @@ def api_get_available_models():try:logger.info("Fetching Custom OpenAI Endpoint models")- from ...llm.providers.implementations.custom_openai_endpoint import (- CustomOpenAIEndpointProvider,- )-# Get the endpoint URL and API key from settingsendpoint_url = _get_setting_from_session("llm.openai_endpoint.url", ""@@ -1278,7 +1277,8 @@ def api_get_available_models():f"Added OpenAI model: {model_id} -> {display_name}")- # Keep original order from OpenAI+ # Keep original order from OpenAI - their models are returned in a+ # meaningful order (newer/more capable models first)except openai.APIError as api_err:logger.exception(f"OpenAI API error: {api_err!s}")diff --git a/src/local_deep_research/web/static/js/components/research.js b/src/local_deep_research/web/static/js/components/research.jsindex 32c6683255..082b7d2354 100644--- a/src/local_deep_research/web/static/js/components/research.js+++ b/src/local_deep_research/web/static/js/components/research.js@@ -117,7 +117,6 @@// Initialize the UI first (immediate operations)setupEventListeners();// Don't populate providers yet - wait for API data- // populateModelProviders();initializeDropdowns();// Also set initial values here for immediate feedback