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.

remove: dedicated vLLM provider (use openai_endpoint instead)

LearningCircuitd89c96353d82
diff --git a/community_benchmark_results/benchmark_template.yaml b/community_benchmark_results/benchmark_template.yaml
index bec02179b0..11b21e758b 100644
--- a/community_benchmark_results/benchmark_template.yaml
+++ b/community_benchmark_results/benchmark_template.yaml
@@ -4,7 +4,7 @@
# Model Information
model: # e.g., Llama-3.3-70B-Q4_K_M
-model_provider: # ollama, llamacpp, vllm, etc.
+model_provider: # ollama, llamacpp, openai_endpoint, etc.
quantization: # e.g., Q4_K_M, Q5_K_S, FP16, etc.
# Search Engine (critical for benchmark reproducibility)
diff --git a/docs/CONFIGURATION.md b/docs/CONFIGURATION.md
index 4bb543b529..062648123f 100644
--- a/docs/CONFIGURATION.md
+++ b/docs/CONFIGURATION.md
@@ -119,7 +119,7 @@ They are not available in the Web UI because they are needed to start the applic
| `llm.openai_endpoint.api_key` | `LDR_LLM_OPENAI_ENDPOINT_API_KEY` | `` | API key for your custom OpenAI-compatible endpoint. For cloud services (OpenRouter, Groq), use your actual API key. For local servers (llama.cpp, vLLM), use any non-empty value like 'not-needed'. | SEARCH |
| `llm.openai_endpoint.url` | `LDR_LLM_OPENAI_ENDPOINT_URL` | `https://openrouter.ai/api/v1` | URL of a custom OpenAI-compatible API endpoint. Use for llama.cpp server, vLLM, Ollama, OpenRouter, Groq, Together, or any service that implements the OpenAI API format. Example for local llama.cpp: http://localhost:8000/v1 | LLM |
| `llm.openrouter.api_key` | `LDR_LLM_OPENROUTER_API_KEY` | `null` | API key to use for the OpenRouter provider. | SEARCH |
-| `llm.provider` | `LDR_LLM_PROVIDER` | `OLLAMA` | The LLM service provider. Choose local providers (Ollama, LM Studio, LlamaCpp, vLLM) for free on-device inference, or cloud APIs (OpenAI, Anthropic, Google, OpenRouter) for hosted models. | LLM |
+| `llm.provider` | `LDR_LLM_PROVIDER` | `OLLAMA` | The LLM service provider. Choose local providers (Ollama, LM Studio, LlamaCpp) for free on-device inference, or cloud APIs (OpenAI, Anthropic, Google, OpenRouter) for hosted models. | LLM |
| `llm.supports_max_tokens` | `LDR_LLM_SUPPORTS_MAX_TOKENS` | `true` | Feature flag for max_tokens parameter. Disable if your LLM API returns errors when max_tokens is set. When disabled, the parameter is not passed to the API. | LLM |
| `llm.temperature` | `LDR_LLM_TEMPERATURE` | `0.7` | Controls randomness in model outputs. Lower values (0.0-0.3) produce deterministic, factual responses; higher values (0.7-1.0) produce more creative and varied outputs. | LLM |
| `llm.xai.api_key` | `LDR_LLM_XAI_API_KEY` | `null` | API key to use for the xAI Grok provider. | LLM |
diff --git a/docs/install-pip.md b/docs/install-pip.md
index 6862ef70bf..d275f63873 100644
--- a/docs/install-pip.md
+++ b/docs/install-pip.md
@@ -34,16 +34,6 @@ LDR uses SQLCipher for AES-256 encrypted databases. Pre-built `sqlcipher3` wheel
## Optional Dependencies
-### VLLM Support
-
-For running transformer models directly (most users running Ollama or LlamaCpp don't need this):
-
-```bash
-pip install "local-deep-research[vllm]"
-```
-
-This installs torch, transformers, and vllm for advanced local model hosting.
-
### MCP Server
For integration with Claude Desktop or Claude Code:
diff --git a/docs/installation.md b/docs/installation.md
index 8d7fe4b3c1..62c02411b5 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -101,7 +101,7 @@ Best for developers or users integrating LDR into existing Python projects.
pip install local-deep-research
```
-For full setup (SearXNG, Ollama, SQLCipher, vllm extras), see the [pip Guide](install-pip.md).
+For full setup (SearXNG, Ollama, SQLCipher), see the [pip Guide](install-pip.md).
## Unraid
diff --git a/pyproject.toml b/pyproject.toml
index 5f3c2e0131..a8d104fd3a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -95,11 +95,6 @@ dependencies = [
]
[project.optional-dependencies]
-vllm = [
- "torch>=2.0.0",
- "transformers>=4.30.0",
- "vllm>=0.4.0",
-]
mcp = [
"mcp[cli]~=1.2",
]
diff --git a/src/local_deep_research/config/llm_config.py b/src/local_deep_research/config/llm_config.py
index 09d50762b9..b2d3f31cc7 100644
--- a/src/local_deep_research/config/llm_config.py
+++ b/src/local_deep_research/config/llm_config.py
@@ -29,7 +29,6 @@ VALID_PROVIDERS = [
"anthropic",
"google",
"openrouter",
- "vllm",
"openai_endpoint",
"lmstudio",
"llamacpp",
@@ -87,23 +86,6 @@ def is_ollama_available(settings_snapshot=None):
return False
-def is_vllm_available():
- """Check if VLLM capability is available"""
- try:
- import torch # noqa: F401
- import transformers # noqa: F401
-
- # Only try to import VLLM if the dependencies are available
- # The VLLM class itself might not fail to import, but using it will fail
- # without the proper dependencies
- import vllm # noqa: F401
- from langchain_community.llms import VLLM # noqa: F401
-
- return True
- except ImportError:
- return False
-
-
def is_lmstudio_available(settings_snapshot=None):
"""Check if LM Studio is available by delegating to the provider class."""
try:
@@ -202,10 +184,6 @@ def get_available_providers(settings_snapshot=None):
if is_llamacpp_available(settings_snapshot):
providers["llamacpp"] = "LlamaCpp (local models)"
- # Check for VLLM capability
- if is_vllm_available():
- providers["vllm"] = "VLLM (local models)"
-
# Default fallback
if not providers:
providers["none"] = "No model providers available"
@@ -546,33 +524,6 @@ def get_llm(
settings_snapshot=settings_snapshot,
)
- elif provider == "vllm":
- if not is_vllm_available():
- raise ValueError(
- "VLLM dependencies are not available. Please install torch, transformers, and vllm."
- )
-
- try:
- from langchain_community.llms import VLLM
-
- llm = VLLM(
- model=model_name,
- trust_remote_code=True,
- max_new_tokens=128,
- top_k=10,
- top_p=0.95,
- temperature=temperature,
- )
- return wrap_llm_without_think_tags(
- llm,
- research_id=research_id,
- provider=provider,
- research_context=research_context,
- )
- except Exception:
- logger.exception("Error loading VLLM model")
- raise
-
elif provider == "ollama":
try:
# Use the configurable Ollama base URL
diff --git a/src/local_deep_research/defaults/default_settings.json b/src/local_deep_research/defaults/default_settings.json
index e3806c662d..5fc6dd509f 100644
--- a/src/local_deep_research/defaults/default_settings.json
+++ b/src/local_deep_research/defaults/default_settings.json
@@ -565,7 +565,7 @@
},
"llm.provider": {
"category": "llm_general",
- "description": "The LLM service provider. Choose local providers (Ollama, LM Studio, LlamaCpp, vLLM) for free on-device inference, or cloud APIs (OpenAI, Anthropic, Google, OpenRouter) for hosted models.",
+ "description": "The LLM service provider. Choose local providers (Ollama, LM Studio, LlamaCpp) for free on-device inference, or cloud APIs (OpenAI, Anthropic, Google, OpenRouter) for hosted models.",
"editable": true,
"max_value": null,
"min_value": null,
@@ -587,10 +587,6 @@
"label": "LM Studio (Local)",
"value": "lmstudio"
},
- {
- "label": "vLLM (Local)",
- "value": "vllm"
- },
{
"label": "OpenAI-Compatible Endpoint (llama.cpp, vLLM, etc.)",
"value": "openai_endpoint"
diff --git a/src/local_deep_research/metrics/pricing/pricing_fetcher.py b/src/local_deep_research/metrics/pricing/pricing_fetcher.py
index 1a9d3f011f..fe23393d30 100644
--- a/src/local_deep_research/metrics/pricing/pricing_fetcher.py
+++ b/src/local_deep_research/metrics/pricing/pricing_fetcher.py
@@ -54,7 +54,6 @@ class PricingFetcher:
"codellama": {"prompt": 0.0, "completion": 0.0},
"vicuna": {"prompt": 0.0, "completion": 0.0},
"alpaca": {"prompt": 0.0, "completion": 0.0},
- "vllm": {"prompt": 0.0, "completion": 0.0},
"lmstudio": {"prompt": 0.0, "completion": 0.0},
"llamacpp": {"prompt": 0.0, "completion": 0.0},
}
@@ -123,7 +122,7 @@ class PricingFetcher:
provider = provider.lower() if provider else ""
# Provider-first approach: Check if provider indicates local/free models
- local_providers = ["ollama", "vllm", "lmstudio", "llamacpp"]
+ local_providers = ["ollama", "lmstudio", "llamacpp"]
if provider in local_providers:
logger.debug(
f"Local provider '{provider}' detected - returning zero cost"
@@ -205,7 +204,7 @@ class PricingFetcher:
for k, v in self.static_pricing.items()
if k.startswith("gemini")
}
- elif provider in ["ollama", "vllm", "lmstudio", "llamacpp"]:
+ elif provider in ["ollama", "lmstudio", "llamacpp"]:
# All local models are free
provider_models = {
k: v
diff --git a/src/local_deep_research/web/routes/settings_routes.py b/src/local_deep_research/web/routes/settings_routes.py
index b97717a924..e417892576 100644
--- a/src/local_deep_research/web/routes/settings_routes.py
+++ b/src/local_deep_research/web/routes/settings_routes.py
@@ -1111,7 +1111,6 @@ def api_get_available_models():
# Add remaining hardcoded providers (complex local providers not yet migrated)
provider_options.extend(
[
- {"value": "VLLM", "label": "vLLM (Local)"},
{
"value": "LLAMACPP",
"label": "Llama.cpp (Local GGUF files only)",
diff --git a/src/local_deep_research/web/static/js/components/settings.js b/src/local_deep_research/web/static/js/components/settings.js
index b76c9e9083..cdea850ad5 100644
--- a/src/local_deep_research/web/static/js/components/settings.js
+++ b/src/local_deep_research/web/static/js/components/settings.js
@@ -4431,7 +4431,6 @@
{ value: 'OPENAI', label: 'OpenAI (Cloud)' },
{ value: 'ANTHROPIC', label: 'Anthropic (Cloud)' },
{ value: 'OPENAI_ENDPOINT', label: 'OpenAI-Compatible Endpoint (llama.cpp, vLLM, etc.)' },
- { value: 'VLLM', label: 'vLLM (Local)' },
{ value: 'LMSTUDIO', label: 'LM Studio (Local)' },
{ value: 'LLAMACPP', label: 'Llama.cpp (Local GGUF files only)' }
];
diff --git a/src/local_deep_research/web/templates/pages/benchmark.html b/src/local_deep_research/web/templates/pages/benchmark.html
index fcaa00dccf..af5e900477 100644
--- a/src/local_deep_research/web/templates/pages/benchmark.html
+++ b/src/local_deep_research/web/templates/pages/benchmark.html
@@ -2416,7 +2416,6 @@ function populateEvaluationProviders() {
{ value: 'openai', label: 'OpenAI (Cloud)' },
{ value: 'anthropic', label: 'Anthropic (Cloud)' },
{ value: 'openai_endpoint', label: 'OpenAI-Compatible Endpoint' },
- { value: 'vllm', label: 'vLLM (Local)' },
{ value: 'lmstudio', label: 'LM Studio (Local)' },
{ value: 'llamacpp', label: 'Llama.cpp (Local GGUF files only)' }
];
diff --git a/src/local_deep_research/web/templates/pages/context_overflow.html b/src/local_deep_research/web/templates/pages/context_overflow.html
index 114ee2f4be..2abb28d82f 100644
--- a/src/local_deep_research/web/templates/pages/context_overflow.html
+++ b/src/local_deep_research/web/templates/pages/context_overflow.html
@@ -679,7 +679,6 @@
'anthropic': 'Anthropic',
'google': 'Google',
'openrouter': 'OpenRouter',
- 'vllm': 'vLLM',
'lmstudio': 'LM Studio',
'llamacpp': 'Llama.cpp',
'xai': 'xAI',
diff --git a/src/local_deep_research/web/templates/pages/cost_analytics.html b/src/local_deep_research/web/templates/pages/cost_analytics.html
index b59141ad42..071aa76f2c 100644
--- a/src/local_deep_research/web/templates/pages/cost_analytics.html
+++ b/src/local_deep_research/web/templates/pages/cost_analytics.html
@@ -663,7 +663,7 @@
<li><strong>Output Tokens:</strong> Charged at completion pricing rate (usually higher)</li>
<li><strong>Total Cost:</strong> (Input tokens ÷ 1000) × Input rate + (Output tokens ÷ 1000) × Output rate</li>
<li><strong>Provider-Aware Pricing:</strong> Uses both model name and provider for accurate pricing</li>
- <li><strong>Local Models:</strong> Ollama, LM Studio, vLLM, and self-hosted models are free ($0.00)</li>
+ <li><strong>Local Models:</strong> Ollama, LM Studio, and self-hosted models are free ($0.00)</li>
<li><strong>Savings Calculation:</strong> Estimates money saved by comparing local usage to commercial equivalents</li>
<li><strong>Currency Format:</strong> Shows appropriate decimal places based on amount</li>
</ul>
@@ -676,7 +676,7 @@
<li><strong>OpenAI:</strong> GPT-4, GPT-4 Turbo, GPT-4o, GPT-3.5 Turbo pricing</li>
<li><strong>Anthropic:</strong> Claude-3 Opus, Sonnet, Haiku, Claude-3.5 pricing</li>
<li><strong>Google:</strong> Gemini Pro, Gemini 1.5 Pro/Flash pricing</li>
- <li><strong>Local/Open Source:</strong> Ollama, LM Studio, vLLM, LlamaCpp (all free)</li>
+ <li><strong>Local/Open Source:</strong> Ollama, LM Studio, LlamaCpp (all free)</li>
<li><strong>Updates:</strong> Pricing data is updated regularly from official sources</li>
</ul>
</div>
@@ -709,7 +709,7 @@
<div class="ldr-info-section">
<h4><i class="fas fa-home"></i> Local Model Pricing Estimates</h4>
<ul>
- <li><strong>Zero API Costs:</strong> Local models (Ollama, LM Studio, vLLM) have no API fees</li>
+ <li><strong>Zero API Costs:</strong> Local models (Ollama, LM Studio) have no API fees</li>
<li><strong>Savings Calculation:</strong> Compares your usage against equivalent commercial models</li>
<li><strong>Baseline Pricing:</strong> Uses conservative estimates (GPT-3.5/Claude Haiku rates)</li>
<li><strong>Rough Estimates:</strong> Actual commercial costs could be higher or lower</li>
diff --git a/src/local_deep_research/web/warning_checks/hardware.py b/src/local_deep_research/web/warning_checks/hardware.py
index 4c8473d692..034e7e9a3a 100644
--- a/src/local_deep_research/web/warning_checks/hardware.py
+++ b/src/local_deep_research/web/warning_checks/hardware.py
@@ -6,7 +6,7 @@ they take primitive values and return warning dicts (or None).
from typing import Optional
-LOCAL_PROVIDERS = frozenset({"ollama", "llamacpp", "lmstudio", "vllm"})
+LOCAL_PROVIDERS = frozenset({"ollama", "llamacpp", "lmstudio"})
def check_high_context(
diff --git a/src/local_deep_research/web_search_engines/rate_limiting/llm/wrapper.py b/src/local_deep_research/web_search_engines/rate_limiting/llm/wrapper.py
index 660bb35f30..c21a74305e 100644
--- a/src/local_deep_research/web_search_engines/rate_limiting/llm/wrapper.py
+++ b/src/local_deep_research/web_search_engines/rate_limiting/llm/wrapper.py
@@ -86,7 +86,6 @@ def create_rate_limited_llm_wrapper(base_llm, provider: Optional[str] = None):
"ollama",
"lmstudio",
"llamacpp",
- "vllm",
"local",
"none",
]
diff --git a/tests/config/test_llm_config.py b/tests/config/test_llm_config.py
index d61919a7e0..50a53af554 100644
--- a/tests/config/test_llm_config.py
+++ b/tests/config/test_llm_config.py
@@ -31,7 +31,6 @@ class TestValidProviders:
"anthropic",
"google",
"openrouter",
- "vllm",
"openai_endpoint",
"lmstudio",
"llamacpp",
@@ -141,21 +140,6 @@ class TestIsOllamaAvailable:
assert is_ollama_available() is False
-class TestIsVllmAvailable:
- """Tests for is_vllm_available function."""
-
- def test_returns_false_when_imports_fail(self):
- """Should return False when dependencies not installed."""
- with patch.dict("sys.modules", {"vllm": None}):
- # The actual check imports vllm, so we test with import error
- with patch(
- "builtins.__import__",
- side_effect=ImportError("No module named vllm"),
- ):
- # Reset and test - this is tricky due to how imports work
- pass # The function has try/except so it won't raise
-
-
class TestIsLmstudioAvailable:
"""Tests for is_lmstudio_available function (delegates to LMStudioProvider)."""
@@ -264,14 +248,10 @@ class TestGetAvailableProviders:
"local_deep_research.config.llm_config.is_llamacpp_available",
return_value=False,
):
- with patch(
- "local_deep_research.config.llm_config.is_vllm_available",
- return_value=False,
- ):
- result = get_available_providers()
- assert isinstance(result, dict)
- # Should have "none" when no providers available
- assert "none" in result
+ result = get_available_providers()
+ assert isinstance(result, dict)
+ # Should have "none" when no providers available
+ assert "none" in result
def test_includes_ollama_when_available(self):
"""Should include ollama when available."""
@@ -308,12 +288,8 @@ class TestGetAvailableProviders:
"local_deep_research.config.llm_config.is_llamacpp_available",
return_value=False,
):
- with patch(
- "local_deep_research.config.llm_config.is_vllm_available",
- return_value=False,
- ):
- result = get_available_providers()
- assert "ollama" in result
+ result = get_available_providers()
+ assert "ollama" in result
class TestGetSelectedLlmProvider:
diff --git a/tests/config/test_llm_config_context.py b/tests/config/test_llm_config_context.py
index 895315a109..b3807590ee 100644
--- a/tests/config/test_llm_config_context.py
+++ b/tests/config/test_llm_config_context.py
@@ -35,7 +35,6 @@ class TestContextWindowCalculation:
"ollama",
"llamacpp",
"lmstudio",
- "vllm",
]
assert is_cloud, f"{provider} should be detected as cloud"
diff --git a/tests/config/test_llm_config_coverage.py b/tests/config/test_llm_config_coverage.py
index 62d3d5d4b7..5aa2389234 100644
--- a/tests/config/test_llm_config_coverage.py
+++ b/tests/config/test_llm_config_coverage.py
@@ -4,7 +4,6 @@ in local_deep_research/config/llm_config.py.
Focuses on gaps not covered by existing test files:
- is_*_available() import-error and exception branches
-- is_vllm_available() with mocked imports
- get_available_providers() multi-provider and cache behaviour
- wrap_llm_without_think_tags() context_limit injection, token counter, string responses
- _get_context_window_for_provider() edge cases
@@ -36,7 +35,6 @@ def _patch_all_availability(**overrides):
"openai_endpoint": False,
"lmstudio": False,
"llamacpp": False,
- "vllm": False,
}
defaults.update(overrides)
@@ -406,66 +404,6 @@ class TestIsOpenRouterAvailable:
# ===================================================================
-# is_vllm_available (import-gated, no provider class)
-# ===================================================================
-
-
-class TestIsVLLMAvailable:
- """Tests for is_vllm_available() which checks torch, transformers, vllm imports."""
-
- def test_returns_false_when_torch_missing(self):
- """Missing torch -> False."""
- from local_deep_research.config.llm_config import is_vllm_available
-
- with patch.dict(sys.modules, {"torch": None}):
- # Force the function to re-execute the import check
- # We need to call the actual function, but it caches via try/except
- # so patching sys.modules is sufficient if we trigger an ImportError
- original_import = (
- __builtins__.__import__
- if hasattr(__builtins__, "__import__")
- else __import__
- )
-
- def mock_import(name, *args, **kwargs):
- if name == "torch":
- raise ImportError("no torch")
- return original_import(name, *args, **kwargs)
-
- with patch("builtins.__import__", side_effect=mock_import):
- assert is_vllm_available() is False
-
- def test_returns_false_when_vllm_missing(self):
- """Missing vllm -> False."""
- from local_deep_research.config.llm_config import is_vllm_available
-
- original_import = __import__
-
- def mock_import(name, *args, **kwargs):
- if name == "vllm":
- raise ImportError("no vllm")
- return original_import(name, *args, **kwargs)
-
- with patch("builtins.__import__", side_effect=mock_import):
- assert is_vllm_available() is False
-
- def test_returns_false_when_langchain_vllm_missing(self):
- """Missing langchain_community.llms.VLLM -> False."""
- from local_deep_research.config.llm_config import is_vllm_available
-
- original_import = __import__
-
- def mock_import(name, *args, **kwargs):
- if name == "langchain_community.llms" or (
- name == "langchain_community" and "VLLM" in str(args)
- ):
- raise ImportError("no VLLM class")
- return original_import(name, *args, **kwargs)
-
- with patch("builtins.__import__", side_effect=mock_import):
- assert is_vllm_available() is False
-
-
# ===================================================================
# get_available_providers (cached function)
# ===================================================================
@@ -575,16 +513,6 @@ class TestGetAvailableProviders:
assert "llamacpp" in result
assert result["llamacpp"] == "LlamaCpp (local models)"
- def test_only_vllm_available(self):
- from local_deep_research.config.llm_config import (
- get_available_providers,
- )
-
- with _patch_all_availability(vllm=True):
- result = get_available_providers()
- assert "vllm" in result
- assert result["vllm"] == "VLLM (local models)"
-
def test_multiple_providers_available(self):
"""Multiple providers yields dict with all of them, no 'none'."""
from local_deep_research.config.llm_config import (
@@ -613,10 +541,9 @@ class TestGetAvailableProviders:
openai_endpoint=True,
lmstudio=True,
llamacpp=True,
- vllm=True,
):
result = get_available_providers()
- assert len(result) == 9
+ assert len(result) == 8
assert "none" not in result
def test_cache_returns_same_object(self):
@@ -693,19 +620,6 @@ class TestGetSelectedLlmProvider:
class TestGetContextWindowForProvider:
"""Additional edge-case coverage for _get_context_window_for_provider."""
- def test_vllm_treated_as_cloud(self):
- """vllm is not in the local list, so it goes through the cloud branch."""
- with patch(
- f"{MODULE}.get_setting_from_snapshot",
- return_value=True,
- ):
- from local_deep_research.config.llm_config import (
- _get_context_window_for_provider,
- )
-
- result = _get_context_window_for_provider("vllm")
- assert result is None # unrestricted cloud
-
def test_openrouter_treated_as_cloud(self):
with patch(
f"{MODULE}.get_setting_from_snapshot",
@@ -1092,7 +1006,6 @@ class TestValidProviders:
"anthropic",
"google",
"openrouter",
- "vllm",
"openai_endpoint",
"lmstudio",
"llamacpp",
diff --git a/tests/config/test_llm_config_extended.py b/tests/config/test_llm_config_extended.py
index 0f6ccbc9b8..4d80bb58ea 100644
--- a/tests/config/test_llm_config_extended.py
+++ b/tests/config/test_llm_config_extended.py
@@ -1,4 +1,4 @@
-"""Extended tests for llm_config provider paths (VLLM, LlamaCpp, Ollama, OpenAI)."""
+"""Extended tests for llm_config provider paths (LlamaCpp, Ollama, OpenAI)."""
from unittest.mock import MagicMock, patch
@@ -29,97 +29,6 @@ def _mock_get_setting(settings):
return lambda key, default=None, **kw: settings.get(key, default)
-# ── VLLM provider ──────────────────────────────────────────────────
-
-
-class TestVLLMProvider:
- """Tests for the VLLM provider path in get_llm."""
-
- def test_unavailable_raises_error(self):
- """Test that unavailable VLLM raises ValueError."""
- settings = _settings_dict({"llm.provider": "vllm"})
-
- with (
- patch(
- "local_deep_research.config.llm_config.is_llm_registered",
- return_value=False,
- ),
- patch(
- "local_deep_research.config.llm_config.get_setting_from_snapshot",
- side_effect=_mock_get_setting(settings),
- ),
- patch(
- "local_deep_research.config.llm_config.is_vllm_available",
- return_value=False,
- ),
- ):
- with pytest.raises(ValueError, match="VLLM dependencies"):
- get_llm(provider="vllm")
-
- def test_available_creates_instance(self):
- """When VLLM is available, VLLM instance is created."""
- settings = _settings_dict({"llm.provider": "vllm"})
-
- mock_vllm_cls = MagicMock()
- mock_vllm_instance = MagicMock()
- mock_vllm_cls.return_value = mock_vllm_instance
-
- with (
- patch(
- "local_deep_research.config.llm_config.is_llm_registered",
- return_value=False,
- ),
- patch(
- "local_deep_research.config.llm_config.get_setting_from_snapshot",
- side_effect=_mock_get_setting(settings),
- ),
- patch(
- "local_deep_research.config.llm_config.is_vllm_available",
- return_value=True,
- ),
- patch(
- "local_deep_research.config.llm_config.wrap_llm_without_think_tags",
- return_value=mock_vllm_instance,
- ),
- patch.dict(
- "sys.modules",
- {"langchain_community.llms": MagicMock(VLLM=mock_vllm_cls)},
- ),
- ):
- result = get_llm(provider="vllm")
- mock_vllm_cls.assert_called_once()
- assert result is mock_vllm_instance
-
- def test_exception_raises_error(self):
- """Exception during VLLM creation is propagated."""
- settings = _settings_dict({"llm.provider": "vllm"})
-
- with (
- patch(
- "local_deep_research.config.llm_config.is_llm_registered",
- return_value=False,
- ),
- patch(
- "local_deep_research.config.llm_config.get_setting_from_snapshot",
- side_effect=_mock_get_setting(settings),
- ),
- patch(
- "local_deep_research.config.llm_config.is_vllm_available",
- return_value=True,
- ),
- patch.dict(
- "sys.modules",
- {
- "langchain_community.llms": MagicMock(
- VLLM=MagicMock(side_effect=RuntimeError("GPU error"))
- )
- },
- ),
- ):
- with pytest.raises(RuntimeError, match="GPU error"):
- get_llm(provider="vllm")
-
-
# ── LlamaCpp provider ──────────────────────────────────────────────
diff --git a/tests/config/test_llm_config_missing_coverage.py b/tests/config/test_llm_config_missing_coverage.py
index 052d5c2994..079b4363e5 100644
--- a/tests/config/test_llm_config_missing_coverage.py
+++ b/tests/config/test_llm_config_missing_coverage.py
@@ -3,8 +3,7 @@ Tests for missing coverage gaps in local_deep_research/config/llm_config.py.
Targets specific uncovered code paths:
- get_llm env var logic (LDR_USE_FALLBACK_LLM, LDR_TESTING_WITH_MOCKS,
- provider_has_config skipping, vllm/lmstudio/llamacpp local checks)
-- get_llm vllm import exception path (now raises instead of falling back)
+ provider_has_config skipping, lmstudio/llamacpp local checks)
- get_llm ollama model-not-found, creation exception (now raises), enable_thinking true/false
- get_llm llamacpp no model path, invalid extension, directory with gguf suggestion
- _get_context_window_for_provider cloud unrestricted=False, local None window
@@ -111,36 +110,6 @@ class TestGetLlmFallbackEnvVar:
with pytest.raises(ValueError):
get_llm(provider="openai", settings_snapshot=settings)
- def test_fallback_env_var_vllm_available_skips_fallback(self):
- """When provider is vllm and available, fallback is skipped."""
- settings = _settings_dict({"llm.provider": "vllm"})
- mock_vllm_cls = MagicMock()
- mock_vllm_instance = MagicMock()
- mock_vllm_cls.return_value = mock_vllm_instance
- with (
- patch.dict(os.environ, {"LDR_USE_FALLBACK_LLM": "1"}, clear=False),
- patch.dict(os.environ, {"LDR_TESTING_WITH_MOCKS": ""}, clear=False),
- patch(f"{MODULE}.is_llm_registered", return_value=False),
- patch(
- f"{MODULE}.get_setting_from_snapshot",
- side_effect=_mock_get_setting(settings),
- ),
- patch(f"{MODULE}.is_vllm_available", return_value=True),
- patch(
- f"{MODULE}.wrap_llm_without_think_tags",
- return_value=mock_vllm_instance,
- ),
- patch.dict(
- "sys.modules",
- {"langchain_community.llms": MagicMock(VLLM=mock_vllm_cls)},
- ),
- ):
- from local_deep_research.config.llm_config import get_llm
-
- result = get_llm(provider="vllm", settings_snapshot=settings)
- mock_vllm_cls.assert_called_once()
- assert result is mock_vllm_instance
-
def test_fallback_env_var_lmstudio_available_skips_fallback(self):
"""When provider is lmstudio and available, fallback is skipped."""
settings = _settings_dict({"llm.provider": "lmstudio"})
@@ -189,52 +158,6 @@ class TestGetLlmFallbackEnvVar:
with pytest.raises(ValueError, match="model path not configured"):
get_llm(provider="llamacpp", settings_snapshot=settings)
- def test_fallback_env_var_vllm_unavailable_raises_error(self):
- """When provider is vllm but NOT available, ValueError is raised (fallback removed)."""
- settings = _settings_dict({"llm.provider": "vllm"})
- with (
- patch.dict(os.environ, {"LDR_USE_FALLBACK_LLM": "1"}, clear=False),
- patch.dict(os.environ, {"LDR_TESTING_WITH_MOCKS": ""}, clear=False),
- patch(f"{MODULE}.is_llm_registered", return_value=False),
- patch(
- f"{MODULE}.get_setting_from_snapshot",
- side_effect=_mock_get_setting(settings),
- ),
- patch(f"{MODULE}.is_vllm_available", return_value=False),
- ):
- from local_deep_research.config.llm_config import get_llm
-
- with pytest.raises(ValueError):
- get_llm(provider="vllm", settings_snapshot=settings)
-
-
-class TestGetLlmVllmImportException:
- """Tests for the vllm provider import/creation exception path."""
-
- def test_vllm_import_exception_raises_error(self):
- """When VLLM class import raises, exception is propagated (fallback removed)."""
- settings = _settings_dict({"llm.provider": "vllm"})
- broken_module = MagicMock()
- type(broken_module).VLLM = property(
- lambda self: (_ for _ in ()).throw(ImportError("no VLLM"))
- )
- with (
- patch(f"{MODULE}.is_llm_registered", return_value=False),
- patch(
- f"{MODULE}.get_setting_from_snapshot",
- side_effect=_mock_get_setting(settings),
- ),
- patch(f"{MODULE}.is_vllm_available", return_value=True),
- patch.dict(
- "sys.modules", {"langchain_community.llms": broken_module}
- ),
- ):
- from local_deep_research.config.llm_config import get_llm
-
- with pytest.raises((ImportError, ValueError)):
- get_llm(provider="vllm", settings_snapshot=settings)
-
-
class TestGetLlmOllamaEdgeCases:
"""Tests for ollama-specific edge cases in get_llm."""
diff --git a/tests/config/test_llm_config_providers.py b/tests/config/test_llm_config_providers.py
index 65f58a1335..f33e196466 100644
--- a/tests/config/test_llm_config_providers.py
+++ b/tests/config/test_llm_config_providers.py
@@ -186,7 +186,6 @@ class TestProviderValidation:
"anthropic",
"google",
"openrouter",
- "vllm",
"openai_endpoint",
"lmstudio",
"llamacpp",
@@ -252,19 +251,3 @@ class TestProviderAvailabilityChecks:
assert openrouter_available is not None
- def test_vllm_checks_imports(self):
- """VLLM availability checks required imports."""
- required_imports = ["torch", "transformers", "vllm"]
-
- # Simulate import check
- imports_available = {
- "torch": True,
- "transformers": True,
- "vllm": False, # Not installed
- }
-
- is_available = all(
- imports_available.get(imp, False) for imp in required_imports
- )
-
- assert not is_available # vllm not available
diff --git a/tests/conftest.py b/tests/conftest.py
index c0746262b9..5b6bb87fbf 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -518,7 +518,6 @@ def mock_llm_config(monkeypatch):
"ollama",
"openai",
"anthropic",
- "vllm",
"openai_endpoint",
"lmstudio",
"llamacpp",
diff --git a/tests/metrics/pricing/test_pricing_fetcher_coverage.py b/tests/metrics/pricing/test_pricing_fetcher_coverage.py
index bbc519ccff..f64ab959ed 100644
--- a/tests/metrics/pricing/test_pricing_fetcher_coverage.py
+++ b/tests/metrics/pricing/test_pricing_fetcher_coverage.py
@@ -137,12 +137,6 @@ class TestGetModelPricingLocalProviders:
result = await fetcher.get_model_pricing("anything", "ollama")
assert result == {"prompt": 0.0, "completion": 0.0}
- @pytest.mark.asyncio
- async def test_vllm_returns_zero(self):
- fetcher = PricingFetcher()
- result = await fetcher.get_model_pricing("my-model", "vllm")
- assert result == {"prompt": 0.0, "completion": 0.0}
-
@pytest.mark.asyncio
async def test_lmstudio_returns_zero(self):
fetcher = PricingFetcher()
@@ -312,13 +306,6 @@ class TestGetModelsByProvider:
assert pricing["prompt"] == 0.0
assert pricing["completion"] == 0.0
- def test_vllm_returns_free_models(self):
- fetcher = PricingFetcher()
- models = fetcher._get_models_by_provider("vllm")
- assert len(models) > 0
- for pricing in models.values():
- assert pricing["prompt"] == 0.0
-
def test_unknown_provider_returns_empty(self):
fetcher = PricingFetcher()
models = fetcher._get_models_by_provider("some_random_provider")
diff --git a/tests/metrics/test_pricing_fetcher.py b/tests/metrics/test_pricing_fetcher.py
index f44d5da689..d0d631d2b4 100644
--- a/tests/metrics/test_pricing_fetcher.py
+++ b/tests/metrics/test_pricing_fetcher.py
@@ -131,7 +131,7 @@ class TestPricingFetcherGetModelPricing:
@pytest.mark.asyncio
async def test_local_providers_list(self):
"""Should recognize all local providers."""
- local_providers = ["ollama", "vllm", "lmstudio", "llamacpp"]
+ local_providers = ["ollama", "lmstudio", "llamacpp"]
async with PricingFetcher() as fetcher:
for provider in local_providers:
@@ -173,7 +173,7 @@ class TestPricingFetcherGetModelsByProvider:
"""Should return zero-cost models for local providers."""
fetcher = PricingFetcher()
- for provider in ["ollama", "vllm", "lmstudio", "llamacpp"]:
+ for provider in ["ollama", "lmstudio", "llamacpp"]:
models = fetcher._get_models_by_provider(provider)
for pricing in models.values():
assert pricing["prompt"] == 0.0
diff --git a/tests/mock_llm_config.py b/tests/mock_llm_config.py
index 4bfc8f7f31..68c476adca 100644
--- a/tests/mock_llm_config.py
+++ b/tests/mock_llm_config.py
@@ -22,7 +22,6 @@ def create_mock_llm_config():
"ollama",
"openai",
"anthropic",
- "vllm",
"openai_endpoint",
"lmstudio",
"llamacpp",
diff --git a/tests/mock_modules.py b/tests/mock_modules.py
index bf84b6d47e..fe45ad492d 100644
--- a/tests/mock_modules.py
+++ b/tests/mock_modules.py
@@ -75,7 +75,6 @@ def create_mock_llm_config(monkeypatch):
"ollama",
"openai",
"anthropic",
- "vllm",
"openai_endpoint",
"lmstudio",
"llamacpp",
diff --git a/tests/rate_limiting/test_llm_wrapper_extended.py b/tests/rate_limiting/test_llm_wrapper_extended.py
index 8364ea4ce9..a52bd74cdf 100644
--- a/tests/rate_limiting/test_llm_wrapper_extended.py
+++ b/tests/rate_limiting/test_llm_wrapper_extended.py
@@ -145,7 +145,6 @@ class TestCheckIfLocalModel:
"ollama",
"lmstudio",
"llamacpp",
- "vllm",
"local",
"none",
]:
diff --git a/tests/rate_limiting/test_rate_limiting_behavior.py b/tests/rate_limiting/test_rate_limiting_behavior.py
index e6f6392c6c..c91c06be52 100644
--- a/tests/rate_limiting/test_rate_limiting_behavior.py
+++ b/tests/rate_limiting/test_rate_limiting_behavior.py
@@ -487,11 +487,6 @@ class TestCheckIfLocalModel:
wrapper = self._make_wrapper(provider="llamacpp")
assert wrapper._check_if_local_model() is True
- def test_vllm_provider_is_local(self):
- """'vllm' provider → local model."""
- wrapper = self._make_wrapper(provider="vllm")
- assert wrapper._check_if_local_model() is True
-
def test_local_provider_is_local(self):
"""'local' provider → local model."""
wrapper = self._make_wrapper(provider="local")
diff --git a/tests/settings/golden_master_settings.json b/tests/settings/golden_master_settings.json
index ca2060e414..0091d79947 100644
--- a/tests/settings/golden_master_settings.json
+++ b/tests/settings/golden_master_settings.json
@@ -1078,7 +1078,7 @@
},
"llm.provider": {
"category": "llm_general",
- "description": "The LLM service provider. Choose local providers (Ollama, LM Studio, LlamaCpp, vLLM) for free on-device inference, or cloud APIs (OpenAI, Anthropic, Google, OpenRouter) for hosted models.",
+ "description": "The LLM service provider. Choose local providers (Ollama, LM Studio, LlamaCpp) for free on-device inference, or cloud APIs (OpenAI, Anthropic, Google, OpenRouter) for hosted models.",
"editable": true,
"max_value": null,
"min_value": null,
@@ -1100,10 +1100,6 @@
"label": "LM Studio (Local)",
"value": "lmstudio"
},
- {
- "label": "vLLM (Local)",
- "value": "vllm"
- },
{
"label": "OpenAI-Compatible Endpoint (llama.cpp, vLLM, etc.)",
"value": "openai_endpoint"
diff --git a/tests/settings/test_settings_defaults_integrity.py b/tests/settings/test_settings_defaults_integrity.py
index f9435cf0bd..6e79d48e48 100644
--- a/tests/settings/test_settings_defaults_integrity.py
+++ b/tests/settings/test_settings_defaults_integrity.py
@@ -222,7 +222,6 @@ def _is_dynamic_setting(key: str) -> bool:
"llm.ollama.",
"llm.lmstudio.",
"llm.openai_endpoint.",
- "llm.vllm.",
# News subsystem: many settings consumed by JS frontend or
# batch-loaded by news scheduler
"news.",
diff --git a/tests/test_api_key_frontend_settings.py b/tests/test_api_key_frontend_settings.py
index 7bde01dc8f..7d1af21ad1 100644
--- a/tests/test_api_key_frontend_settings.py
+++ b/tests/test_api_key_frontend_settings.py
@@ -30,7 +30,7 @@ CLOUD_PROVIDERS = [
OPTIONAL_API_KEY_PROVIDERS = ["OLLAMA", "OPENAI_ENDPOINT"]
# Local providers that don't need API keys
-LOCAL_PROVIDERS_NO_KEY = ["LMSTUDIO", "LLAMACPP", "VLLM"]
+LOCAL_PROVIDERS_NO_KEY = ["LMSTUDIO", "LLAMACPP"]
class TestAPIKeyProviderMapping:
diff --git a/tests/test_llm_rate_limiting.py b/tests/test_llm_rate_limiting.py
index e83b2487be..e9f473140a 100644
--- a/tests/test_llm_rate_limiting.py
+++ b/tests/test_llm_rate_limiting.py
@@ -104,7 +104,7 @@ class TestRateLimitedLLMWrapper:
self, mock_llm, mock_db_settings
):
"""Test that local providers skip rate limiting even when enabled."""
- local_providers = ["ollama", "lmstudio", "llamacpp", "vllm"]
+ local_providers = ["ollama", "lmstudio", "llamacpp"]
for provider in local_providers:
wrapper = create_rate_limited_llm_wrapper(
diff --git a/tests/ui_tests/test_api_key_inputs.js b/tests/ui_tests/test_api_key_inputs.js
index 4e92eb1dd5..dfac8225e7 100644
--- a/tests/ui_tests/test_api_key_inputs.js
+++ b/tests/ui_tests/test_api_key_inputs.js
@@ -23,7 +23,7 @@ const API_KEY_PROVIDERS = [
];
// Local providers that should NOT show API key fields (except Ollama which has optional key)
-const LOCAL_PROVIDERS_NO_KEY = ['LMSTUDIO', 'LLAMACPP', 'VLLM'];
+const LOCAL_PROVIDERS_NO_KEY = ['LMSTUDIO', 'LLAMACPP'];
async function testApiKeyInputs() {
const isCI = !!process.env.CI;
diff --git a/tests/web/warning_checks/test_hardware.py b/tests/web/warning_checks/test_hardware.py
index 6c847f9ec2..ad91ea669e 100644
--- a/tests/web/warning_checks/test_hardware.py
+++ b/tests/web/warning_checks/test_hardware.py
@@ -15,7 +15,7 @@ class TestLocalProviders:
def test_contains_expected_providers(self):
assert LOCAL_PROVIDERS == frozenset(
- {"ollama", "llamacpp", "lmstudio", "vllm"}
+ {"ollama", "llamacpp", "lmstudio"}
)
def test_is_frozenset(self):
@@ -55,8 +55,8 @@ class TestCheckHighContext:
assert result["type"] == "high_context"
def test_provider_name_in_message(self):
- result = check_high_context("vllm", 16384, dismissed=False)
- assert "vllm" in result["message"]
+ result = check_high_context("ollama", 16384, dismissed=False)
+ assert "ollama" in result["message"]
def test_warning_dict_has_all_required_keys(self):
result = check_high_context("ollama", 16384, dismissed=False)
diff --git a/tests/web/warning_checks/test_hardware_high_value.py b/tests/web/warning_checks/test_hardware_high_value.py
index 430d71ec9b..6e403b1045 100644
--- a/tests/web/warning_checks/test_hardware_high_value.py
+++ b/tests/web/warning_checks/test_hardware_high_value.py
@@ -17,7 +17,7 @@ class TestLocalProviders:
assert isinstance(LOCAL_PROVIDERS, frozenset)
def test_expected_providers(self):
- assert LOCAL_PROVIDERS == {"ollama", "llamacpp", "lmstudio", "vllm"}
+ assert LOCAL_PROVIDERS == {"ollama", "llamacpp", "lmstudio"}
# ---------------------------------------------------------------------------
@@ -52,11 +52,6 @@ class TestCheckHighContext:
assert result is not None
assert result["type"] == "high_context"
- def test_vllm_high_context(self):
- result = check_high_context("vllm", 10000, False)
- assert result is not None
- assert result["type"] == "high_context"
-
def test_lmstudio_high_context(self):
result = check_high_context("lmstudio", 10000, False)
assert result is not None
diff --git a/tests/web/warning_checks/test_warning_checks_high_value.py b/tests/web/warning_checks/test_warning_checks_high_value.py
index 1a16b3d95b..4e4bd3c03c 100644
--- a/tests/web/warning_checks/test_warning_checks_high_value.py
+++ b/tests/web/warning_checks/test_warning_checks_high_value.py
@@ -109,8 +109,8 @@ class TestCheckHighContextEdgeCases:
def test_provider_in_message(self):
"""Warning message includes provider name."""
- result = check_high_context("vllm", 16384, False)
- assert "vllm" in result["message"]
+ result = check_high_context("ollama", 16384, False)
+ assert "ollama" in result["message"]
class TestCheckContextBelowHistoryEdgeCases:
diff --git a/tests/web_search_engines/rate_limiting/test_llm_wrapper_pure_logic.py b/tests/web_search_engines/rate_limiting/test_llm_wrapper_pure_logic.py
index e09e0a76a0..a72cd6467d 100644
--- a/tests/web_search_engines/rate_limiting/test_llm_wrapper_pure_logic.py
+++ b/tests/web_search_engines/rate_limiting/test_llm_wrapper_pure_logic.py
@@ -44,7 +44,7 @@ class TestCheckIfLocalModel:
@pytest.mark.parametrize(
"provider",
- ["ollama", "lmstudio", "llamacpp", "vllm", "local", "none"],
+ ["ollama", "lmstudio", "llamacpp", "local", "none"],
)
def test_local_providers_detected(self, provider):
w = _wrapper(provider=provider)
@@ -52,7 +52,7 @@ class TestCheckIfLocalModel:
@pytest.mark.parametrize(
"provider",
- ["Ollama", "LMSTUDIO", "LlamaCpp", "VLLM", "LOCAL", "NONE"],
+ ["Ollama", "LMSTUDIO", "LlamaCpp", "LOCAL", "NONE"],
)
def test_local_providers_case_insensitive(self, provider):
w = _wrapper(provider=provider)