Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix prompt path import
perf3ct7c519df9b543
diff --git a/src/services/llm/constants/llm_prompt_constants.ts b/src/services/llm/constants/llm_prompt_constants.tsindex e6dcf08f34..a4323ad49a 100644--- a/src/services/llm/constants/llm_prompt_constants.ts+++ b/src/services/llm/constants/llm_prompt_constants.ts@@ -17,7 +17,7 @@ const loadSystemPrompt = (): string => {const __filename = fileURLToPath(import.meta.url);const __dirname = path.dirname(__filename);- const promptPath = path.join(__dirname, 'base_system_prompt.md');+ const promptPath = path.join(__dirname, '../prompts/base_system_prompt.md');const promptContent = fs.readFileSync(promptPath, 'utf8');// Strip the markdown title if neededreturn promptContent.replace(/^# TriliumNext Base System Prompt\n+/, '');