From 20e75781b049867249b4388181075bc511a2079e Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 19 Jan 2025 11:57:31 -0500 Subject: [PATCH] Fix variables and calls --- src/slash-commands/sysprompt.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slash-commands/sysprompt.js b/src/slash-commands/sysprompt.js index aac2f19..6d94444 100644 --- a/src/slash-commands/sysprompt.js +++ b/src/slash-commands/sysprompt.js @@ -10,8 +10,9 @@ module.exports = { async execute(interaction) { try { await interaction.deferReply({ephemeral: true}); - const sysPrompt = await fn.localLLM.getSysPrompt().catch(e => console.error(e)); - const sysPromptEmbed = fn.builders.embeds.sysPrompt(sysPrompt); + const sysPrompt = strings.ai.sysPrompt; + const model = strings.ai.localModel; + const sysPromptEmbed = fn.builders.embeds.sysPrompt(sysPrompt, model); await interaction.editReply(sysPromptEmbed); } catch (e) { console.error(e);