Skip to content

Commit

Permalink
fix: update the outline level
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyLv committed Mar 13, 2023
1 parent 685037e commit 3435c65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openai/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function getUserSubtitlePrompt(
const sentenceCount = videoConfig.sentenceNumber;
const emojiTemplateText = `${videoConfig.showEmoji ? "[Emoji] " : ""}`;
const emojiDescriptionText = `${videoConfig.showEmoji ? "Choose an appropriate emoji for each bullet point. " : ""}`;
const prompt = `Your output should use the following template:\n### Summary\n### Highlights\n- ${emojiTemplateText}Bulletpoint\n\nYour task is to summarise the text I have given you in up to ${sentenceCount} concise bullet points, starting with a short highlight. If there is a lot of content, use the outline list, which can have a hierarchical structure of up to ${videoConfig.outlineLevel} levels. ${emojiDescriptionText}Use the text above: {{Title}} {{Transcript}}.\n\nReply in ${language} Language.`;
const prompt = `Your output should use the following template:\n### Summary\n### Highlights\n- ${emojiTemplateText}Bulletpoint\n - Child points if need\n\nYour task is to summarise the text I have given you in up to ${sentenceCount} concise bullet points, starting with a short highlight. Use the outline list, which can have a hierarchical structure of up to ${videoConfig.outlineLevel} levels. ${emojiDescriptionText}Use the text above: {{Title}} {{Transcript}}.\n\nReply in ${language} Language.`;

return `Title: "${videoTitle}"\nTranscript: "${videoTranscript}"\n\nInstructions: ${prompt}`;
}
Expand Down

1 comment on commit 3435c65

@vercel
Copy link

@vercel vercel bot commented on 3435c65 Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.