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(benchmark): gate evaluator endpoint_url behind the settings opt-in (#4579)

LearningCircuit841c9c33e95f
diff --git a/changelog.d/+benchmark-eval-endpoint-opt-in.security.md b/changelog.d/+benchmark-eval-endpoint-opt-in.security.md
new file mode 100644
index 0000000000..380a5f9469
--- /dev/null
+++ b/changelog.d/+benchmark-eval-endpoint-opt-in.security.md
@@ -0,0 +1 @@
+**Benchmark YAML downloads no longer leak the evaluation `endpoint_url` in the default export.** The default (summary) download is meant to be safe to share, but it still emitted the evaluator's `endpoint_url`, which can be a private/internal host. It's now gated behind the existing **Export → "Include settings snapshot"** opt-in — matching the settings-snapshot gating — so the default summary stays shareable and reproducibility-minded users still get it on demand.
diff --git a/src/local_deep_research/web/templates/pages/benchmark_results.html b/src/local_deep_research/web/templates/pages/benchmark_results.html
index a6e5ab3483..ceee22481f 100644
--- a/src/local_deep_research/web/templates/pages/benchmark_results.html
+++ b/src/local_deep_research/web/templates/pages/benchmark_results.html
@@ -709,7 +709,11 @@ async function downloadBenchmarkYAML(runId, includeExamples = false, includeSett
let evaluatorYaml = 'evaluator:\n';
if (evalConfig.model_name) evaluatorYaml += ` model: ${evalConfig.model_name}\n`;
if (evalConfig.provider) evaluatorYaml += ` provider: ${evalConfig.provider}\n`;
- if (evalConfig.openai_endpoint_url) evaluatorYaml += ` endpoint_url: ${evalConfig.openai_endpoint_url}\n`;
+ // The eval endpoint URL can be a private/internal host, so gate it
+ // behind the settings opt-in (same as the settings snapshot below).
+ // The default summary download stays shareable without leaking an
+ // internal URL; opting in includes it for full reproducibility.
+ if (includeSettings && evalConfig.openai_endpoint_url) evaluatorYaml += ` endpoint_url: ${evalConfig.openai_endpoint_url}\n`;
if (evalConfig.temperature !== undefined && evalConfig.temperature !== null) {
evaluatorYaml += ` temperature: ${evalConfig.temperature}\n`;
}