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 evaluation model setting persistence in benchmark page

LearningCircuite953ff21c996
diff --git a/src/local_deep_research/web/templates/pages/benchmark.html b/src/local_deep_research/web/templates/pages/benchmark.html
index 10776f1697..f837194b07 100644
--- a/src/local_deep_research/web/templates/pages/benchmark.html
+++ b/src/local_deep_research/web/templates/pages/benchmark.html
@@ -2610,8 +2610,18 @@ function loadEvaluationSettings() {
}
// Set model
- if (evaluationModelInput && evalModelData && evalModelData.settings) {
- const modelValue = evalModelData.settings.value || 'anthropic/claude-3.7-sonnet';
+ if (evaluationModelInput) {
+ // First check if there's already an initial value from the template
+ const hiddenInput = document.getElementById('evaluation_model_hidden');
+ let modelValue = hiddenInput && hiddenInput.value ? hiddenInput.value : null;
+
+ // Only use API data if there's no initial value from template
+ if (!modelValue && evalModelData && evalModelData.settings) {
+ modelValue = evalModelData.settings.value || 'anthropic/claude-3.7-sonnet';
+ } else if (!modelValue) {
+ modelValue = 'anthropic/claude-3.7-sonnet';
+ }
+
console.log('Setting evaluation model to:', modelValue);
// Wait for models to be loaded, then set the value