actually adding openai fallback oopsie lol kekw

This commit is contained in:
Luna
2026-03-01 16:39:43 +01:00
parent f9bd2f1ee0
commit 96ddb6555c
3 changed files with 174 additions and 29 deletions

View File

@@ -530,7 +530,7 @@ client.on('messageCreate', async (message) => {
searchOutage: intelMeta.searchOutage,
});
const reply = await chatCompletion(messages, { temperature: 0.6, maxTokens: 200 });
const finalReply = (reply && reply.trim()) || "I'm here, just had a tiny brain freeze. Mind repeating that?";
const finalReply = (reply && reply.trim()) || "Brain crashed, Please try again";
const chunks = splitResponses(finalReply);
const outputs = chunks.length ? chunks : [finalReply];
@@ -544,7 +544,7 @@ client.on('messageCreate', async (message) => {
} catch (error) {
console.error('[bot] Failed to respond:', error);
if (!message.channel?.send) return;
await message.channel.send('Hit a snag reaching my brain server. Try again in a few seconds?');
await message.channel.send('Someone tell Luna there is a problem with my AI.');
}
});