Skip to content

~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.

fix: add event listeners to save Ollama URL and custom endpoint changes

LearningCircuit5748c982ea35
diff --git a/src/local_deep_research/web/static/js/components/settings_sync.js b/src/local_deep_research/web/static/js/components/settings_sync.js
index 89eaec2de2..80c5f9c8aa 100644
--- a/src/local_deep_research/web/static/js/components/settings_sync.js
+++ b/src/local_deep_research/web/static/js/components/settings_sync.js
@@ -116,6 +116,40 @@ function connectMenuSettings() {
});
}
+ // Handle Ollama URL input changes
+ const ollamaUrlInput = document.getElementById('ollama_url');
+ if (ollamaUrlInput) {
+ ollamaUrlInput.addEventListener('change', function(e) {
+ console.log('Ollama URL changed to:', this.value);
+ saveMenuSettings('llm.ollama.url', this.value);
+ });
+ // Also save on blur (when user clicks away)
+ ollamaUrlInput.addEventListener('blur', function(e) {
+ if (this.value && this.value !== this.getAttribute('data-last-saved')) {
+ console.log('Ollama URL changed (on blur) to:', this.value);
+ saveMenuSettings('llm.ollama.url', this.value);
+ this.setAttribute('data-last-saved', this.value);
+ }
+ });
+ }
+
+ // Handle custom endpoint URL input changes (for OpenAI endpoint)
+ const customEndpointInput = document.getElementById('custom_endpoint');
+ if (customEndpointInput) {
+ customEndpointInput.addEventListener('change', function(e) {
+ console.log('Custom endpoint URL changed to:', this.value);
+ saveMenuSettings('llm.openai_endpoint.url', this.value);
+ });
+ // Also save on blur
+ customEndpointInput.addEventListener('blur', function(e) {
+ if (this.value && this.value !== this.getAttribute('data-last-saved')) {
+ console.log('Custom endpoint URL changed (on blur) to:', this.value);
+ saveMenuSettings('llm.openai_endpoint.url', this.value);
+ this.setAttribute('data-last-saved', this.value);
+ }
+ });
+ }
+
console.log('Menu settings handlers initialized');
}