This commit is contained in:
Your a
2023-11-23 13:04:45 +02:00
parent 85f1647a43
commit fb0a571a39
10 changed files with 2 additions and 30 deletions
+2 -3
View File
@@ -42,8 +42,7 @@ ${data.Conversation.messages.map(message => `**${message.role.toUpperCase()}**:
const groups = groupBy(flow, "categoryId");
let header = `# BlackFriday GPTs Prompts And Jailbreaks
\n\n`;
let header = ``;
for (let groupId of Object.getOwnPropertyNames(groups)) {
let name = groups[groupId][0].category.name;
@@ -53,7 +52,7 @@ for (let groupId of Object.getOwnPropertyNames(groups)) {
// Append category links to readmeContent, renaming 'Others' to 'readme'
header += `- [${name}](./${name.replace(/\s+/g, '-')}.md)\n`;
}
await fs.writeFile(`README.md`, header);
await fs.writeFile(`README.md`, `# BlackFriday GPTs Prompts And Jailbreaks\n\n`+header);
for (let groupId of Object.getOwnPropertyNames(groups)) {
let name = groups[groupId][0].category.name;