Fix variables and calls

This commit is contained in:
Skylar Grant 2025-01-19 11:57:31 -05:00
parent 66c07f0c9d
commit 20e75781b0

View File

@ -10,8 +10,9 @@ module.exports = {
async execute(interaction) { async execute(interaction) {
try { try {
await interaction.deferReply({ephemeral: true}); await interaction.deferReply({ephemeral: true});
const sysPrompt = await fn.localLLM.getSysPrompt().catch(e => console.error(e)); const sysPrompt = strings.ai.sysPrompt;
const sysPromptEmbed = fn.builders.embeds.sysPrompt(sysPrompt); const model = strings.ai.localModel;
const sysPromptEmbed = fn.builders.embeds.sysPrompt(sysPrompt, model);
await interaction.editReply(sysPromptEmbed); await interaction.editReply(sysPromptEmbed);
} catch (e) { } catch (e) {
console.error(e); console.error(e);