// Models Page Module class ModelsPage { constructor() { this.models = []; this.init(); } async init() { await this.loadModels(); this.setupEventListeners(); } async loadModels() { try { const data = await window.api.get('/models'); this.models = data; this.renderModelsTable(); } catch (error) { console.error('Error loading models:', error); window.authManager.showToast('Failed to load models', 'error'); } } renderModelsTable() { const tableBody = document.querySelector('#models-table tbody'); if (!tableBody) return; if (this.models.length === 0) { tableBody.innerHTML = '
${model.id}