Ikyy commited on
Commit
327a97f
·
verified ·
1 Parent(s): a3b7a55

Upload index.html

Browse files
Files changed (1) hide show
  1. index.html +10 -1
index.html CHANGED
@@ -225,7 +225,16 @@
225
 
226
  try {
227
  // Panggil API
228
- const response = await fetch(`https://ikyy-bard.hf.space/claude?query=${encodeURIComponent(message)}`);
 
 
 
 
 
 
 
 
 
229
  const data = await response.json();
230
 
231
  // Cek apakah respons valid
 
225
 
226
  try {
227
  // Panggil API
228
+ function generateRandomNumberString(length) {
229
+ let result = '';
230
+ const characters = '0123456789';
231
+ const charactersLength = characters.length;
232
+ for (let i = 0; i < length; i++) {
233
+ result += characters.charAt(Math.floor(Math.random() * charactersLength));
234
+ }
235
+ return result;
236
+ }
237
+ const response = await fetch(`https://api.yanzbotz.live/api/ai/gpt-4o?query=${encodeURIComponent(message)}&system=${encodeURIComponent("gunakan bahasa indonesia dalam merespon dan jawab langsung ke intinya, tidak perlu bertele-tele atau terlalu banyak basa-basi")}&id=${generateRandomNumberString(5)}&apiKey=yanzdev`);
238
  const data = await response.json();
239
 
240
  // Cek apakah respons valid