Spaces:
Running
Running
File size: 1,433 Bytes
3b8f864 ef83703 3b8f864 ef83703 3b8f864 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
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 } |