mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-27 23:41:31 +08:00
fix prompt path import
This commit is contained in:
parent
713805394c
commit
7c519df9b5
@ -17,7 +17,7 @@ const loadSystemPrompt = (): string => {
|
|||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = path.dirname(__filename);
|
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');
|
const promptContent = fs.readFileSync(promptPath, 'utf8');
|
||||||
// Strip the markdown title if needed
|
// Strip the markdown title if needed
|
||||||
return promptContent.replace(/^# TriliumNext Base System Prompt\n+/, '');
|
return promptContent.replace(/^# TriliumNext Base System Prompt\n+/, '');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user