Spaces:
Paused
Paused
πππ₯π₯πππ π π¨ππππ₯π β‘
commited on
Update ai.js
Browse files- plugins/ai.js +1 -1
plugins/ai.js
CHANGED
|
@@ -31,7 +31,7 @@ async (conn, mek, m, { from, q, reply }) => {
|
|
| 31 |
try {
|
| 32 |
if (!q) return reply("β Please provide a query. Usage: .ai [your message]");
|
| 33 |
|
| 34 |
-
const response = await axios.get(`https://
|
| 35 |
|
| 36 |
const aiReply = `π€ *AI Assistant*:
|
| 37 |
${response.data.response}
|
|
|
|
| 31 |
try {
|
| 32 |
if (!q) return reply("β Please provide a query. Usage: .ai [your message]");
|
| 33 |
|
| 34 |
+
const response = await axios.get(`https://api.giftedtech.my.id/api/ai/gpt?apikey=gifted&q=${encodeURIComponent(q)}`);
|
| 35 |
|
| 36 |
const aiReply = `π€ *AI Assistant*:
|
| 37 |
${response.data.response}
|