Pikeun ngalereskeun ieu, fungsi setInterval kedah disebat di luar fungsi.then. Ieu conto kumaha carana ngalakukeun ieu: hayu intervalId = null; fungsi reloadResource() { fetch('https://example.com/api/resource', { metode: 'GET', judul: { 'Content-Type': 'application/json', }, }).then(response => response.json()).then(data => {console.log'Success:', data); }).catch(errore) => {console.error:', error); }); }Id interval = setreloadResource, 1000);
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence