Skip to content

Commit

Permalink
fix: correct answers in multiple choice prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
3LL4N committed Dec 7, 2023
1 parent d01ace6 commit 6b1e775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/functions/gptHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const promptGenerators: {
maxCharsForQuestion = 100,
maxCharsForChoice = 68,
) =>
`Create a multiple choice question (maximum of ${maxCharsForQuestion} characters) about: "${message}" with ${numChoices} choices. Each choice must not exceed ${maxCharsForChoice} characters and there must be atleast 1 correct answer. Format as:
`Create a multiple choice question (maximum of ${maxCharsForQuestion} characters) about: "${message}" with ${numChoices} choices. Each choice must not exceed ${maxCharsForChoice} characters and there must be only 1 correct answer. Format as:
Question: [Your question here]
${generateChoicesPrompt(numChoices)}
Correct Answer: Option [Correct option number]
Expand Down

0 comments on commit 6b1e775

Please sign in to comment.