~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): add settings_snapshot parameter to XAI and Ollama providers
LearningCircuitbb919fddc255
diff --git a/src/local_deep_research/llm/providers/implementations/ollama.py b/src/local_deep_research/llm/providers/implementations/ollama.pyindex 86bdd9a62e..6fdb36c751 100644--- a/src/local_deep_research/llm/providers/implementations/ollama.py+++ b/src/local_deep_research/llm/providers/implementations/ollama.py@@ -70,21 +70,24 @@ class OllamaProvider:return headers@classmethod- def list_models_for_api(cls, api_key=None):+ def list_models_for_api(cls, api_key=None, settings_snapshot=None):"""Get available models from Ollama.Args:api_key: Optional API key for authentication+ settings_snapshot: Optional settings snapshot for configurationReturns:List of model dictionaries with 'value' and 'label' keys"""from ....utilities.llm_utils import fetch_ollama_models- from ....utilities.db_utils import get_settings_manager- # Get Ollama URL from settings (need to import here to avoid circular imports)- settings = get_settings_manager()- base_url = settings.get_setting("llm.ollama.url")+ # Get Ollama URL from settings+ base_url = get_setting_from_snapshot(+ "llm.ollama.url",+ default=None,+ settings_snapshot=settings_snapshot,+ )if not base_url:logger.warning("Ollama URL not configured")diff --git a/src/local_deep_research/llm/providers/xai.py b/src/local_deep_research/llm/providers/xai.pyindex 78c0f598e5..e3681eb6b5 100644--- a/src/local_deep_research/llm/providers/xai.py+++ b/src/local_deep_research/llm/providers/xai.py@@ -31,7 +31,7 @@ class XAIProvider(OpenAICompatibleProvider):return True@classmethod- def list_models_for_api(cls, api_key=None):+ def list_models_for_api(cls, api_key=None, settings_snapshot=None):"""List available models for xAI.xAI requires authentication for the /models endpoint.@@ -41,7 +41,7 @@ class XAIProvider(OpenAICompatibleProvider):return []# Use the parent class implementation which handles the OpenAI-compatible endpoint- return super().list_models_for_api(api_key)+ return super().list_models_for_api(api_key, settings_snapshot)# Keep the standalone functions for backward compatibility and registration