/** HTML template that loads the IIFE bundle and mounts ChatUI */ import type { DetectedProvider } from './types.js'; export function getHtml(providers: DetectedProvider[], mode: string): string { const firstProvider = providers[0]?.name ?? 'xai'; const availableNames = JSON.stringify(providers.map(p => p.name)); return `