Now update the DOMContentLoaded to initialize the dropdowns:


Edit

// Draggable panel
document.addEventListener('DOMContentLoaded', () => {
    const header = document.getElementById('ai-chat-header');
    const panel = document.getElementById('ai-chat-panel');

// Draggable panel + initialization
document.addEventListener('DOMContentLoaded', () => {
    initAiProviderDropdown();
    const header = document.getElementById('ai-chat-header');
    const panel = document.getElementById('ai-chat-panel');