Tanya AI Gratis Tanya AI Siap Membantu Bot ini siap Menggenerate ide dan pertanyaan apapun. Tujuan bahasa Indonesia🇬🇧 English🇭🇷 Croatian🇨🇿 Czech🇩🇰 Danish🇳🇱 Dutch🇪🇪 Estonian🇫🇮 Finnish🇫🇷 French🇩🇪 German🇭🇺 Hungarian🇮🇪 Irish🇮🇹 Italian🇱🇻 Latvian🇱🇹 Lithuanian🇵🇱 Polish🇵🇹 Portuguese🇧🇷 Brazilian🇷🇴 Romanian🇪🇸 Spanish🇸🇪 Swedish 🇦🇱 *Albanian 🇦🇪 *Arabic 🇦🇲 *Armenian 🇦🇿 *Azerbaijani 🇪🇸 *Basque 🇧🇾 *Belarusian 🇧🇩 *Bengali 🇧🇦 *Bosnian 🇧🇬 *Bulgarian 🇪🇸 *Catalan 🇨🇳 *Chinese 🇬🇪 *Georgian 🇬🇷 *Greek 🇮🇳 *Gujarati 🇮🇳 *Hindi 🇮🇩 *Indonesian 🇯🇵 *Japanese 🇮🇳 *Kannada 🇰🇿 *Kazakh 🇰🇷 *Korean 🇲🇰 *Macedonian 🇲🇾 *Malay 🇮🇳 *Malayalam 🇲🇹 *Maltese 🇮🇳 *Marathi 🇲🇳 *Mongolian 🇳🇵 *Nepali 🇳🇴 *Norwegian 🇦🇫 *Pashto 🇮🇷 *Persian 🇮🇳 *Punjabi 🇷🇺 *Russian 🇷🇸 *Serbian 🇱🇰 *Sinhala 🇸🇰 *Slovak 🇸🇮 *Slovenian 🇰🇪 *Swahili 🇹🇯 *Tajik 🇮🇳 *Tamil 🇮🇳 *Telugu 🇹🇭 *Thai 🇹🇷 *Turkish 🇺🇦 *Ukrainian 🇵🇰 *Urdu 🇺🇿 *Uzbek 🇻🇳 *Vietnamese 🏴 *Welsh 🇿🇦 *Xhosa 🇳🇬 *Yoruba 🇿🇦 *Zulu 3 / 1000 Simpan hasil pertanyaan. Tanya Explore Blog Archive Bisnis Google Teknologi Edukasi Pelajaran Sekolah Hiburan Lowongan Kerja function runCEKK(){ //INPUT EVALUSI const idbutton = document.getElementById("send"); const textareaprompt = document.getElementById("prompt"); textareaprompt.addEventListener('input', () => { if(textareaprompt.value < 1){ document.getElementById("send").disabled = true; }else{ idbutton.disabled = textareaprompt.value == ''; document.getElementById("send").disabled = false; } }); //INPUT EVALUASI } runCEKK(); //FUNGSI MULAI SEND function sendRequest(){ var domain1 = location.href; var hostt1 = domain1.split('/')[2] var hostt2 = domain1.split('.')[1] + "." + domain1.split('.')[2] if(hostt1 == hostt2){ var dir1 = hostt1 }else{ var dir1 = hostt2.split('/')[0] } function Jquery(){ if ('tetadigital.com' == dir1) {} else {window.location = "https://www.jawaraspeed.com"; }} //Jquery(); document.getElementById("send").disabled = true; document.getElementById("showdata1").innerHTML = ""; document.getElementById("showdata1").innerHTML = "Menjawab: "+document.querySelector('#prompt').value+""; var eventSource = new EventSource(`https://ai.jawaraspeedcom.workers.dev/?&prompt=Gunakan bahasa indonesian ${encodeURI(document.querySelector('#prompt').value.replaceAll(":", " "))}&api=@cf/meta/llama-2-7b-chat-int8`); eventSource.onmessage = function(e) { if(e.data == "[DONE]"){ console.log("DONE") }else{ var datas = e.data var arry = [] var jjjs = JSON.parse(datas); arry.push(jjjs.response); const markdown = `${arry}`; const html = markdown.replace(/^### (.*$)/gim, '$1') // h3 tag .replace(/^## (.*$)/gim, '$1') // h2 tag .replace(/^# (.*$)/gim, '$1') // h1 tag .replace(/\*\*(.*)\*\*/gim, '$1') // bold text .replace(/\*(.*)\*/gim, '$1') // italic text .replaceAll(/\[([^\[]+)\](\(([^)]*))\)/gim, '').replaceAll("[",""); // anchor tags document.getElementById('showdata1').innerHTML += html.replaceAll("..", ".").replaceAll("\n", ""); document.getElementById("send").disabled = true; } } eventSource.onerror = function(e) { eventSource.close(); }; //PENUTUP API WEBSOCKET }
Posting Komentar
0Komentar