16 lines
297 B
JavaScript
16 lines
297 B
JavaScript
'use strict';
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
function loadSystemPrompt() {
|
|
const p = path.join(__dirname, '..', '..', 'prompts', 'system.txt');
|
|
try {
|
|
return fs.readFileSync(p, 'utf8');
|
|
} catch (_) {
|
|
return '';
|
|
}
|
|
}
|
|
|
|
module.exports = { loadSystemPrompt };
|