const axios = require('axios'); const cheerio = require('cheerio'); const qs = require('qs');  const url = 'https://chatgptt.me/';  async function fetchAuth() {     try {         const { data } = await axios.get(url, {             headers: {                 'User-Agent': 'Mozilla/5.0 (Linux; Android 8.0.0; SM-G955U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36'             }         });          const $ = cheerio.load(data);          const nonce = $('[data-nonce]').attr('data-nonce');         const postId = $('[data-post-id]').attr('data-post-id');          if (!nonce || !postId) {             throw new Error('Nonce or Post ID not found on the page');         }          return { nonce, postId };     } catch (err) {         console.error('Error fetching auth details:', err.message);         throw err;     } }  async function generateApikey() {     const url = "https://api-gpt.ao-company.com/api/v1/generate-api-key";     const data = {         user: "aurik3"     };     const response = await axios.post(url, data)     const result = {         apikey: response.data.apiKey     }     return result }  async function chatgpt(input) {     try {         const { apikey } = await generateApikey();          const postData = {             question: input         };          const { data } = await axios.post(             'https://api-gpt.ao-company.com/api/v1/chatgpt/stream',             postData,             {                 headers: {                     'User-Agent': 'Mozilla/5.0 (Linux; Android 8.0.0; SM-G955U Build/R16NW) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36',                     'Content-Type': 'application/json',                     'X-api-key': apikey                 }             }         );          if (!data) {             throw new Error('Invalid response data from server');         }          const result = {             message: data.message,         };          return result;     } catch (err) {         console.error('Error sending chat message:', err.message);         return null;     } }  async function chatgpt2(input) {     try {         const { apikey } = await generateApikey();          const postData = { question: input };          const response = await axios({             method: 'post',             url: 'https://api-gpt.ao-company.com/api/v1/chatgpt/stream',             data: postData,             headers: {                 'Content-Type': 'application/json',                 'X-api-key': apikey             },             responseType: 'stream', // Aktifkan streaming         });          let result = '';         response.data.on('data', (chunk) => {             result += chunk.toString(); // Gabungkan chunk data         });          return new Promise((resolve, reject) => {             response.data.on('end', () => {                 console.log(result)                 resolve({ message: result });             });              response.data.on('error', (err) => {                 reject(err);             });         });     } catch (err) {         console.error('Error sending chat message:', err.message);         return null;     } }  chatgpt2('apa yang anda dapat buat sila teramgkan dengan detail');