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(ci): switch e2e LLM to gemini-2.5-flash-lite, tolerate transient errors in markdown export check (#3696)

LearningCircuitfc4a3b42cb99
diff --git a/.github/workflows/puppeteer-e2e-tests.yml b/.github/workflows/puppeteer-e2e-tests.yml
index baba90ff52..c83595e020 100644
--- a/.github/workflows/puppeteer-e2e-tests.yml
+++ b/.github/workflows/puppeteer-e2e-tests.yml
@@ -102,11 +102,13 @@ jobs:
# Create config directory if needed
mkdir -p ~/.config/local-deep-research
- # Create settings with OpenRouter + Gemini Flash 2.0
+ # Create settings with OpenRouter + Gemini 2.5 Flash Lite
+ # (Gemini 2.0 Flash is heavily rate-limited on the OpenRouter free
+ # pool; 2.5 Flash Lite is GA, cheaper, and far less contended.)
cat > ~/.config/local-deep-research/settings.toml << 'EOF'
[llm]
provider = "openrouter"
- model = "google/gemini-2.0-flash-001"
+ model = "google/gemini-2.5-flash-lite"
[search]
tool = "serper"
@@ -122,9 +124,9 @@ jobs:
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
SERPER_API_KEY: ${{ secrets.SERPER_API_KEY }}
# Settings manager env var overrides (format: LDR_<KEY_WITH_UNDERSCORES>)
- # LLM settings - use OpenRouter with Gemini Flash
+ # LLM settings - use OpenRouter with Gemini 2.5 Flash Lite
LDR_LLM_PROVIDER: openrouter
- LDR_LLM_MODEL: google/gemini-2.0-flash-001
+ LDR_LLM_MODEL: google/gemini-2.5-flash-lite
LDR_LLM_OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
# Search settings
LDR_SEARCH_TOOL: serper
@@ -373,7 +375,7 @@ jobs:
echo "---"
echo ""
echo "**Configuration:**"
- echo "- Model: \`google/gemini-2.0-flash-001\` (via OpenRouter)"
+ echo "- Model: \`google/gemini-2.5-flash-lite\` (via OpenRouter)"
echo "- Search: \`serper\`"
echo "- Test suite: \`all\`"
echo ""
diff --git a/tests/puppeteer/test_deep_functionality.js b/tests/puppeteer/test_deep_functionality.js
index a8f0a2e96f..b96d914c27 100644
--- a/tests/puppeteer/test_deep_functionality.js
+++ b/tests/puppeteer/test_deep_functionality.js
@@ -570,14 +570,22 @@ describe('Deep Functionality Tests', function() {
console.log(` Markdown structure: title=${hasTitle}, query=${hasQuery}, timestamp=${hasTimestamp}`);
- // Verify it's not just an error report (unless it's the known CI search engine issue)
+ // Verify it's not just an error report (unless it's a known
+ // CI limitation — search engine config or transient upstream
+ // LLM failure). Mirrors the tolerance applied on the
+ // results page check above.
const isErrorReport = markdownContent.includes('Research Failed') ||
markdownContent.includes('Error Type:');
const isSearchEngineError = markdownContent.includes('Unable to conduct research without a search engine');
+ const isTransientLlmError = markdownContent.includes('API Rate Limit Exceeded') ||
+ markdownContent.includes('Error code: 429') ||
+ /Error code: 5\d\d/.test(markdownContent);
if (isErrorReport && isSearchEngineError) {
// Known CI limitation - export will contain the error report
console.log(' ⚠️ Export contains error (known CI limitation - search engine config)');
+ } else if (isErrorReport && isTransientLlmError) {
+ console.log(' ⚠️ Export contains error (transient upstream LLM provider error)');
} else if (isErrorReport) {
expect(isErrorReport, 'Markdown export should not be an error report').to.be.false;
}
@@ -691,7 +699,7 @@ describe('Deep Functionality Tests', function() {
query: 'What is 2+2?',
mode: 'quick',
model_provider: 'openrouter',
- model: 'google/gemini-2.0-flash-001',
+ model: 'google/gemini-2.5-flash-lite',
search_engine: 'serper'
})
});