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 test_llm_integration.py settings snapshot format

LearningCircuita6d2edeb04cd
diff --git a/tests/test_llm/test_llm_integration.py b/tests/test_llm/test_llm_integration.py
index 4a8d3ab816..fb8672ada9 100644
--- a/tests/test_llm/test_llm_integration.py
+++ b/tests/test_llm/test_llm_integration.py
@@ -45,21 +45,31 @@ def clear_registry():
@pytest.fixture
def full_settings_snapshot():
"""Provide a complete settings snapshot for tests."""
+
+ def _text_param(value):
+ return {"value": value, "ui_element": "text"}
+
+ def _number_param(value):
+ return {"value": value, "ui_element": "number"}
+
+ def _bool_param(value):
+ return {"value": value, "ui_element": "checkbox"}
+
return {
- "llm.model": "test-model",
- "llm.temperature": 0.7,
- "llm.provider": "test",
- "llm.supports_max_tokens": True,
- "llm.max_tokens": 100000,
- "llm.local_context_window_size": 4096,
- "llm.context_window_unrestricted": True,
- "llm.context_window_size": 128000,
- "llm.ollama.url": "http://localhost:11434",
- "llm.openai.api_key": None,
- "llm.anthropic.api_key": None,
- "llm.openai_endpoint.api_key": None,
- "llm.openai_endpoint.url": "https://openrouter.ai/api/v1",
- "rate_limiting.llm_enabled": False,
+ "llm.model": _text_param("test-model"),
+ "llm.temperature": _number_param(0.7),
+ "llm.provider": _text_param("test"),
+ "llm.supports_max_tokens": _bool_param(True),
+ "llm.max_tokens": _number_param(100000),
+ "llm.local_context_window_size": _number_param(4096),
+ "llm.context_window_unrestricted": _bool_param(True),
+ "llm.context_window_size": _number_param(128000),
+ "llm.ollama.url": _text_param("http://localhost:11434"),
+ "llm.openai.api_key": _text_param(None),
+ "llm.anthropic.api_key": _text_param(None),
+ "llm.openai_endpoint.api_key": _text_param(None),
+ "llm.openai_endpoint.url": _text_param("https://openrouter.ai/api/v1"),
+ "rate_limiting.llm_enabled": _bool_param(False),
}