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(settings): sync the static llm.provider options with the registry (#6710)

Huang-404-Q90be3471da12
diff --git a/changelog.d/6618.bugfix.md b/changelog.d/6618.bugfix.md
new file mode 100644
index 0000000000..f3828e4375
--- /dev/null
+++ b/changelog.d/6618.bugfix.md
@@ -0,0 +1,7 @@
+- The settings page's provider dropdown no longer loses the providers added
+ since Requesty. The static `llm.provider` options list is the offline
+ fallback for that dropdown and the source of the settings page's provider
+ prefixes, so Atlas Cloud, DeepSeek, IONOS, OrcaRouter and xAI were missing
+ from a degraded dropdown and their `llm.<provider>.*` settings were not
+ hidden as irrelevant for other providers. A test now pins the list against
+ the provider registry so it cannot drift again.
diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.json
index b75e5d7e08..1070e36101 100644
--- a/src/local_deep_research/defaults/default_settings.json
+++ b/src/local_deep_research/defaults/default_settings.json
@@ -725,6 +725,26 @@
{
"label": "Requesty API",
"value": "requesty"
+ },
+ {
+ "label": "Atlas Cloud API",
+ "value": "atlascloud"
+ },
+ {
+ "label": "DeepSeek API",
+ "value": "deepseek"
+ },
+ {
+ "label": "IONOS AI Model Hub API",
+ "value": "ionos"
+ },
+ {
+ "label": "OrcaRouter API",
+ "value": "orcarouter"
+ },
+ {
+ "label": "xAI Grok API",
+ "value": "xai"
}
],
"step": null,
diff --git a/tests/config/test_llm_config.py b/tests/config/test_llm_config.py
index 0fbab48d94..301997fefc 100644
--- a/tests/config/test_llm_config.py
+++ b/tests/config/test_llm_config.py
@@ -707,6 +707,52 @@ class TestDiscoveredProviderOptions:
):
assert provider in values
+ def test_static_llm_provider_options_match_the_discovered_set(self):
+ """The static llm.provider options list must not drift from the registry.
+
+ ``default_settings.json``'s options are the offline fallback for the
+ provider dropdown (``static/js/utils/provider-options.js`` step 3) and
+ the source of the settings-page relevance filter's provider prefixes
+ (``static/js/components/settings.js``). A provider missing from the
+ list is hidden from the degraded dropdown entirely, and its
+ ``llm.<provider>.*`` settings stop being hidden as irrelevant for
+ other providers. #6618 found five providers (atlascloud, deepseek,
+ ionos, orcarouter, xai) in that state.
+ """
+ import json
+ from pathlib import Path
+
+ from local_deep_research.llm.providers import (
+ get_discovered_provider_options,
+ )
+
+ defaults_path = (
+ Path(__file__).resolve().parents[2]
+ / "src"
+ / "local_deep_research"
+ / "defaults"
+ / "default_settings.json"
+ )
+ with defaults_path.open(encoding="utf-8") as f:
+ defaults = json.load(f)
+
+ static_values = {
+ str(option["value"]).lower()
+ for option in defaults["llm.provider"]["options"]
+ }
+ discovered_values = {
+ option["value"].lower()
+ for option in get_discovered_provider_options()
+ }
+
+ assert static_values == discovered_values, (
+ "llm.provider options drifted from the discovered providers; "
+ f"missing from the static list: "
+ f"{sorted(discovered_values - static_values)}; "
+ f"stale in the static list: "
+ f"{sorted(static_values - discovered_values)}"
+ )
+
def test_available_options_is_filtered_subset(self):
from local_deep_research.llm.providers import (
get_discovered_provider_options,
diff --git a/tests/settings/golden_master_settings.json b/tests/settings/golden_master_settings.json
index bb973ed52f..ca6668a329 100644
--- a/tests/settings/golden_master_settings.json
+++ b/tests/settings/golden_master_settings.json
@@ -1630,6 +1630,26 @@
{
"label": "Requesty API",
"value": "requesty"
+ },
+ {
+ "label": "Atlas Cloud API",
+ "value": "atlascloud"
+ },
+ {
+ "label": "DeepSeek API",
+ "value": "deepseek"
+ },
+ {
+ "label": "IONOS AI Model Hub API",
+ "value": "ionos"
+ },
+ {
+ "label": "OrcaRouter API",
+ "value": "orcarouter"
+ },
+ {
+ "label": "xAI Grok API",
+ "value": "xai"
}
],
"step": null,