mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01: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