| const axios = require("axios") |
|
|
| async function acytoo(text, model) { |
| let res = await axios.request({ |
| method: "POST", |
| url: "https://chat.acytoo.com/api/completions", |
| data: JSON.stringify({ |
| key: "", |
| messages: [{ |
| role: "user", |
| content: text, |
| createAt: "", |
| }], |
| model: model, |
| password: "", |
| temprature: 1 |
| }), |
| headres: { |
| "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36", |
| "Origin": "https://chat.acytoo.com" |
| } |
| }) |
| return res.data |
| } |
|
|
| async function chatgpt_4(text) { |
| let res = await axios.request({ |
| method: "POST", |
| url: "https://deeply.cz/wp-json/mwai-ui/v1/chats/submit", |
| data: JSON.stringify({ |
| botId: "default", |
| chatId: "", |
| contexId: 5072, |
| customId: null, |
| message: [], |
| newImageId: null, |
| newMessage: text + ",jawab dangan bahasa indonesia", |
| session: "N/A", |
| stream: false |
| }), |
| headers: { |
| "Content-Type": "application/json", |
| "X-Wp-Nonce": "1833972ea7", |
| "Referer": "https://deeply.cz/chat-gpt/" |
| } |
| }) |
| return res.data |
| } |
|
|
| module.exports = { acytoo, chatgpt_4 } |