fix: works??

This commit is contained in:
Saahil 2025-01-30 18:42:41 -05:00
parent 077fa7a694
commit 40eb346f36
No known key found for this signature in database
GPG key ID: 8A8B64515254CFC6

View file

@ -75,13 +75,13 @@ export default class Message implements Command {
],
}),
},
).then((r) => r.json());
// .then((r) => r);
).then((r) => r.json())
.then((r) => r.choices[0].message.content);
console.log(aiReq0, `api responsne`);
await app.client.chat.postMessage({
channel: event.channel,
text: aiReq0,
});
// await app.client.chat.postMessage({
// channel: event.channel,
// text: aiReq0,
// });
const aiReq = JSON.parse(aiReq0);
const m = await app.client.chat.postMessage({
channel: event.channel,