~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(llm): address AI code review feedback
LearningCircuit05b4bfb45fd9
diff --git a/src/local_deep_research/llm/providers/openai_base.py b/src/local_deep_research/llm/providers/openai_base.pyindex 85fa0bf5e9..c7a29af875 100644--- a/src/local_deep_research/llm/providers/openai_base.py+++ b/src/local_deep_research/llm/providers/openai_base.py@@ -222,19 +222,25 @@ class OpenAICompatibleProvider:return True@classmethod- def _get_base_url_for_models(cls):+ def _get_base_url_for_models(cls, settings_snapshot=None):"""Get the base URL to use for listing models.Reads from url_setting if defined, otherwise uses default_base_url.+ Args:+ settings_snapshot: Optional settings snapshot dict+Returns:The base URL string to use for model listing"""if cls.url_setting:- from ...utilities.db_utils import get_settings_manager-- settings = get_settings_manager()- url = settings.get_setting(cls.url_setting)+ # Use get_setting_from_snapshot which handles both settings_snapshot+ # and thread-local context, with proper fallback+ url = get_setting_from_snapshot(+ cls.url_setting,+ default=None,+ settings_snapshot=settings_snapshot,+ )if url:# Ensure /v1 suffix for OpenAI-compatible APIsurl = url.rstrip("/")@@ -272,10 +278,10 @@ class OpenAICompatibleProvider:from openai import OpenAI# Get the URL from settings if configured, otherwise use default- base_url = cls._get_base_url_for_models()+ base_url = cls._get_base_url_for_models(settings_snapshot)- # Create OpenAI client- client = OpenAI(api_key=api_key, base_url=base_url)+ # Create OpenAI client with timeout to prevent hanging+ client = OpenAI(api_key=api_key, base_url=base_url, timeout=10.0)# Fetch modelslogger.debug(@@ -297,8 +303,10 @@ class OpenAICompatibleProvider:return modelsexcept Exception as e:- logger.exception(- f"Error listing models from {cls.provider_name}: {e}"+ # Use warning level since connection failures are expected+ # when the provider is not running (e.g., LM Studio not started)+ logger.warning(+ f"Could not list models from {cls.provider_name}: {e}")return []