async function loadGroups() { const r = await apiFetch('/api/v1/groups'); if(!r) return; const groups = await r.json(); document.getElementById('groups-count').textContent = groups.length; const container = document.getElementById('groups-container'); container.innerHTML = groups.length ? groups.map(g => '
' + g.id + ' ' + g.models.join(', ') + ' ' + (g.strategy || 'priority') + '
').join('') : '
No groups configured.
'; }