mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-26 15:01:32 +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 __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 needed
|
||||
return promptContent.replace(/^# TriliumNext Base System Prompt\n+/, '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user