~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(research): remove dead per-provider model DB fetch (data.setting.value no-op) (#4881)
LearningCircuitb7e588a2e981
diff --git a/src/local_deep_research/web/static/js/components/research.js b/src/local_deep_research/web/static/js/components/research.jsindex f2f815b69e..bed6aace8a 100644--- a/src/local_deep_research/web/static/js/components/research.js+++ b/src/local_deep_research/web/static/js/components/research.js@@ -1167,41 +1167,14 @@SafeLogger.log(`Updated model options for provider ${provider}: ${modelOptions.length} models`);- // Check for stored last model before deciding what to select- let lastSelectedModel = null; // Don't use localStorage-- // Also check the database setting- fetch(URLS.SETTINGS_API.LLM_MODEL, {- method: 'GET',- headers: {- 'Content-Type': 'application/json'- }- })- .then(response => response.json())- .then(data => {- if (data && data.setting && data.setting.value) {- const dbModelValue = data.setting.value;- SafeLogger.log('Found model in database:', dbModelValue);-- // Use the database value if it exists and matches the current provider- const dbModelMatch = modelOptions.find(model => model.value === dbModelValue);-- if (dbModelMatch) {- SafeLogger.log('Found matching model in filtered options:', dbModelMatch);- lastSelectedModel = dbModelValue;- }- }-- // Continue with model selection- selectModelBasedOnProvider(resetSelectedModel, lastSelectedModel);- resolve(modelOptions);- })- .catch(error => {- SafeLogger.error('Error fetching model from database:', error.message || error);- // Continue with model selection using localStorage- selectModelBasedOnProvider(resetSelectedModel, lastSelectedModel);- resolve(modelOptions);- });+ // The saved model is restored separately by the main settings load+ // (loadSettings applies data.settings["llm.model"] to the dropdown).+ // No extra per-provider DB lookup is needed here — the previous+ // fetch read data.setting.value, a shape the flat settings endpoint+ // never returns, so it was a no-op. Select from the provider's+ // available options and resolve.+ selectModelBasedOnProvider(resetSelectedModel, null);+ resolve(modelOptions);});}diff --git a/src/local_deep_research/web/static/js/config/urls.js b/src/local_deep_research/web/static/js/config/urls.jsindex 219589ca02..845f6d7280 100644--- a/src/local_deep_research/web/static/js/config/urls.js+++ b/src/local_deep_research/web/static/js/config/urls.js@@ -80,7 +80,6 @@ if (typeof URLS !== 'undefined') {WARNINGS: '/settings/api/warnings',BACKUP_STATUS: '/settings/api/backup-status',OLLAMA_STATUS: '/settings/api/ollama-status',- LLM_MODEL: '/settings/api/llm.model',LLM_PROVIDER: '/settings/api/llm.provider',LLM_CONFIG: '/settings/api/llm',SEARCH_TOOL: '/settings/api/search.tool',