wApiKeyDialog() {
          // apiKeyDialog.style.display = 'flex';
          const form = document.getElementById('apiDetailsForm');
          form.innerHTML = ''; // Clear existing fields

          const fields = getProviderFields(provider);
          fields.forEach(field => {
              const label = document.createElement('label');
              label.textContent = field.placeholder;
              label.for = field.id;
              form.appendChild(label);
              const input = document.creat