enhancement(lint): Fix lint errors for src/commands/zeon_message.ts

Co-authored-by: NeonGamerBot-QK <neon@saahild.com>
Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
zeon-neon[bot] 2025-01-30 23:40:41 +00:00 committed by GitHub
parent 4619a81103
commit 077fa7a694
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,22 +60,23 @@ export default class Message implements Command {
// ],
// model: "gpt-3.5-turbo",
// })
const aiReq0 = await
fetch("https://ai.hackclub.com/chat/completions", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
const aiReq0 = await fetch(
"https://ai.hackclub.com/chat/completions",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
messages: [
{ role: "system", content: prompt },
{ role: "user", content: event.text },
],
}),
})
.then((r) => r.json())
// .then((r) => r);
body: JSON.stringify({
messages: [
{ role: "system", content: prompt },
{ role: "user", content: event.text },
],
}),
},
).then((r) => r.json());
// .then((r) => r);
console.log(aiReq0, `api responsne`);
await app.client.chat.postMessage({
channel: event.channel,