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.

refactor(web): remove duplicate XAI provider code

LearningCircuit92fc4c0d8520
diff --git a/src/local_deep_research/web/routes/settings_routes.py b/src/local_deep_research/web/routes/settings_routes.py
index 45c604a044..102b83909e 100644
--- a/src/local_deep_research/web/routes/settings_routes.py
+++ b/src/local_deep_research/web/routes/settings_routes.py
@@ -1028,9 +1028,6 @@ def api_get_available_models():
provider_options = get_discovered_provider_options()
- # Add xAI provider
- provider_options.append({"value": "XAI", "label": "xAI Grok (Cloud)"})
-
# Add remaining hardcoded providers (complex local providers not yet migrated)
provider_options.extend(
[
@@ -1473,40 +1470,6 @@ def api_get_available_models():
f"Final {provider_key} models count: {len(provider_models)}"
)
- # Try to get xAI models using the provider class
- xai_models = []
- try:
- logger.info("Fetching xAI Grok models")
-
- from ...llm.providers.implementations.xai import XAIProvider
-
- # Get API key if configured (xAI requires it for listing models)
- api_key = _get_setting_from_session("llm.xai.api_key", "")
-
- # Use the provider's list_models_for_api method
- # XAI has fixed URL, no settings_snapshot needed
- models = XAIProvider.list_models_for_api(api_key, None)
-
- # Format models for the API response
- for model in models:
- xai_models.append(
- {
- "value": model["value"],
- "label": f"{model['label']} (xAI)",
- "provider": "XAI",
- }
- )
-
- logger.info(
- f"Successfully fetched {len(xai_models)} models from xAI"
- )
-
- except Exception as e:
- logger.exception(f"Error getting xAI models: {e!s}")
-
- # Set xai_models in providers
- providers["xai_models"] = xai_models
- logger.info(f"Final xAI models count: {len(xai_models)}")
# Save fetched models to database cache
if force_refresh or providers:
# We fetched fresh data, save it to database