mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 23:22:56 +00:00
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:
parent
4619a81103
commit
077fa7a694
1 changed files with 16 additions and 15 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue