AutorÃa | Ultima modificación | Ver Log |
export const init = () => {
document.querySelector('#id_s_block_openai_chat_type').addEventListener('change', e => {
// If the API Type is changed, programmatically hit save so the page automatically reloads with the new options
document.querySelector('.settingsform').classList.add('block_openai_chat')
document.querySelector('.settingsform').classList.add('disabled')
document.querySelector('.settingsform button[type="submit"]').click()
})
}