From 897b95072b20b3d6d9926c6c28191c114a4d6442 Mon Sep 17 00:00:00 2001 From: Deploy Bot Date: Thu, 28 May 2026 12:50:49 +0100 Subject: [PATCH] fix(dashboard): deduplicate modal model list via set + normalize API names - load(): normalize ollama-cloud/* names to short form, deduplicate with Set - Prevents double entries when cache adds short names alongside API full names --- agent-evolution/real-fit.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent-evolution/real-fit.html b/agent-evolution/real-fit.html index 8a1a367..cecb953 100644 --- a/agent-evolution/real-fit.html +++ b/agent-evolution/real-fit.html @@ -142,7 +142,7 @@ function closeModal(id){$(id).classList.add('hidden');} async function load(){ let mRes; - try{ mRes=await fetch(`${API_BASE}/api/models`); allAvailableModels=(await mRes.json()).models||[]; } + try{ mRes=await fetch(`${API_BASE}/api/models`); allAvailableModels=[...new Set((await mRes.json()).models.map(modelShort))].sort(); } catch(e){ allAvailableModels=Object.keys(MODEL_BENCHMARKS); } try{ const rRes=await fetch(`${API_BASE}/api/real-fit-report`);