From 7d157179a5c9e9906680538f8f7d5c5d2b2926bd Mon Sep 17 00:00:00 2001 From: BrunoSobrino <90165013+BrunoSobrino@users.noreply.github.com> Date: Thu, 16 May 2024 19:47:48 -0600 Subject: [PATCH] Update herramientas-chatgpt.js --- plugins/herramientas-chatgpt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/herramientas-chatgpt.js b/plugins/herramientas-chatgpt.js index cb98a9f6c3..52d269f6ac 100644 --- a/plugins/herramientas-chatgpt.js +++ b/plugins/herramientas-chatgpt.js @@ -57,7 +57,7 @@ const handler = async (m, {conn, text, usedPrefix, command}) => { try { conn.sendPresenceUpdate('composing', m.chat); const syms1 = tradutor.texto3; - const Empireapi1 = await fetch(`https://api.cafirexos.com/api/chatgpt?text=${text}&name=${m.name}&prompt=${syms1}`); + const Empireapi1 = await fetch(`${global.MyApiRestBaseUrl}/api/chatgpt?text=${text}&name=${m.name}&prompt=${syms1}&apikey=${global.MyApiRestApikey}`); const empireApijson1 = await Empireapi1.json(); if (empireApijson1.resultado == 'error' || empireApijson1.resultado == '' || !empireApijson1.resultado) return XD; // causar error undefined para lanzar msg de error m.reply(`${empireApijson1.resultado}`.trim());