~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
fix: Add model configuration to export and direct mode tests
LearningCircuitfe54f94395d7
diff --git a/tests/ui_tests/test_direct_mode.js b/tests/ui_tests/test_direct_mode.jsindex 68198f4fc8..eb4a8a1a4b 100644--- a/tests/ui_tests/test_direct_mode.js+++ b/tests/ui_tests/test_direct_mode.js@@ -2,6 +2,7 @@ const puppeteer = require('puppeteer');const { browserConfig } = require('./browser_config');const AuthHelper = require('./auth_helper');const { getPuppeteerLaunchOptions } = require('./puppeteer_config');+const { setupDefaultModel } = require('./model_helper');async function submitResearchBatch(page, queries) {// Submit all researches as quickly as possible@@ -18,35 +19,17 @@ async function submitResearchBatch(page, queries) {await page.waitForSelector('#query', { timeout: 5000 });await page.type('#query', query);- // Select the model that's actually installed+ // Configure model using model_helper+ // NOTE: We use setupDefaultModel() instead of hardcoding a model name because:+ // 1. In CI, no real OLLAMA models are available (0 models filtered)+ // 2. model_helper.js sets both #model and #model_hidden inputs correctly+ // 3. The fallback LLM (LDR_USE_FALLBACK_LLM=true) needs proper model config+ // Without this, research submission fails with "no model selected"try {- // First try to find the model dropdown by different possible selectors- const modelSelector = await page.evaluateHandle(() => {- // Try different selectors- return document.querySelector('#model-select') ||- document.querySelector('#model') ||- document.querySelector('[name="model"]') ||- document.querySelector('select[name="model"]');- });-- if (modelSelector && modelSelector.asElement()) {- console.log('Found model selector, selecting llama3.2:3b-instruct-fp16');- await page.evaluate(() => {- const selector = document.querySelector('#model-select') ||- document.querySelector('#model') ||- document.querySelector('[name="model"]') ||- document.querySelector('select[name="model"]');- if (selector) {- selector.value = 'llama3.2:3b-instruct-fp16';- // Trigger change event- selector.dispatchEvent(new Event('change', { bubbles: true }));- }- });- } else {- console.log('No model selector found');- }+ await setupDefaultModel(page);+ console.log('Model configured via model_helper');} catch (e) {- console.log('Error selecting model:', e.message);+ console.log('Warning: Could not configure model:', e.message);}// Intercept the responsediff --git a/tests/ui_tests/test_export_functionality.js b/tests/ui_tests/test_export_functionality.jsindex 7efb6085bd..658c53380b 100644--- a/tests/ui_tests/test_export_functionality.js+++ b/tests/ui_tests/test_export_functionality.js@@ -4,6 +4,7 @@ const fs = require('fs');const AuthHelper = require('./auth_helper');const { CI_TEST_USER, logAuthConfig } = require('./auth_helper');const { getPuppeteerLaunchOptions } = require('./puppeteer_config');+const { setupDefaultModel } = require('./model_helper');// Test configurationconst BASE_URL = 'http://127.0.0.1:5000';@@ -114,9 +115,22 @@ async function configureExportSettings(page) {async function createResearchAndWait(page) {log('\n=== CREATING RESEARCH FOR EXPORT TEST ===', 'section');- await page.goto(BASE_URL);+ await page.goto(BASE_URL, { waitUntil: 'domcontentloaded' });await page.waitForSelector('#query');+ // Set up model configuration before submitting+ // NOTE: This is required for CI where no real OLLAMA models exist.+ // Without setupDefaultModel(), research submission fails because:+ // 1. "Filtered models for provider OLLAMA: 0 models"+ // 2. No model is selected in the form+ // 3. The API rejects research with no model+ // See model_helper.js for how it sets #model and #model_hidden inputs.+ log('🔧 Configuring model...', 'info');+ const modelConfigured = await setupDefaultModel(page);+ if (!modelConfigured) {+ log('⚠️ Could not configure model, test may fail', 'warning');+ }+// Use a simpler query that completes fasterconst testQuery = 'What is 2+2?';await page.type('#query', testQuery);