| 12345678910 |
- const fs = require('fs');
- const file = 'src/modules/book-generator/langgraph-generator.ts';
- const lines = fs.readFileSync(file, 'utf8').split('\n');
- // 修改第790行(索引789)
- lines[789] = ` const thinkEndIdx = cleanedStr.indexOf(String.fromCharCode(60) + 'think end' + String.fromCharCode(62));`;
- fs.writeFileSync(file, lines.join('\n'), 'utf8');
- console.log('✅ 第790行已修复');
- console.log('新内容:', lines[789]);
|