~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
feat(warnings): add action link to model-mismatch hardware warning (#4529)
LearningCircuitac1037da160a
diff --git a/src/local_deep_research/web/warning_checks/hardware.py b/src/local_deep_research/web/warning_checks/hardware.pyindex 846727b1ba..8222015a39 100644--- a/src/local_deep_research/web/warning_checks/hardware.py+++ b/src/local_deep_research/web/warning_checks/hardware.py@@ -63,6 +63,13 @@ def check_model_mismatch(f"GPU memory."),"dismissKey": "app.warnings.dismiss_model_mismatch",+ # Shares the high_context destination on purpose: this warning fires on+ # large-model + high-context together, and the actionable lever is+ # reducing context size. The "Token Usage & Context Analytics" page is+ # where the user sees actual token/context usage to make that call —+ # there is no separate GPU/VRAM analytics page.+ "actionUrl": "/metrics/context-overflow",+ "actionLabel": "View context metrics",}diff --git a/tests/web/warning_checks/test_hardware.py b/tests/web/warning_checks/test_hardware.pyindex 201fdaac58..943e5cd674 100644--- a/tests/web/warning_checks/test_hardware.py+++ b/tests/web/warning_checks/test_hardware.py@@ -72,6 +72,11 @@ class TestCheckHighContext:result = check_high_context("ollama", 16384, dismissed=False)assert result["dismissKey"] == "app.warnings.dismiss_high_context"+ def test_warning_dict_has_action_link(self):+ result = check_high_context("ollama", 16384, dismissed=False)+ assert result["actionUrl"] == "/metrics/context-overflow"+ assert result["actionLabel"] == "View context metrics"+class TestCheckModelMismatch:"""Tests for check_model_mismatch."""@@ -154,6 +159,8 @@ class TestCheckModelMismatch:"title","message","dismissKey",+ "actionUrl",+ "actionLabel",}def test_no_warning_none_model(self):@@ -167,6 +174,13 @@ class TestCheckModelMismatch:)assert result["dismissKey"] == "app.warnings.dismiss_model_mismatch"+ def test_warning_dict_has_action_link(self):+ result = check_model_mismatch(+ "ollama", "llama3.1:70b", 16384, dismissed=False+ )+ assert result["actionUrl"] == "/metrics/context-overflow"+ assert result["actionLabel"] == "View context metrics"+class TestCheckLegacyServerConfig:"""Tests for check_legacy_server_config."""diff --git a/tests/web/warning_checks/test_warning_checks_high_value.py b/tests/web/warning_checks/test_warning_checks_high_value.pyindex fca20b87ae..9fc225e9e1 100644--- a/tests/web/warning_checks/test_warning_checks_high_value.py+++ b/tests/web/warning_checks/test_warning_checks_high_value.py@@ -83,7 +83,15 @@ class TestCheckModelMismatchEdgeCases:def test_warning_dict_structure(self):"""Warning dict has all expected keys."""result = check_model_mismatch("ollama", "llama-70b", 16384, False)- expected_keys = {"type", "icon", "title", "message", "dismissKey"}+ expected_keys = {+ "type",+ "icon",+ "title",+ "message",+ "dismissKey",+ "actionUrl",+ "actionLabel",+ }assert set(result.keys()) == expected_keys