From 21b0583077b077ad831702496506885717ea0c13 Mon Sep 17 00:00:00 2001 From: tunny17 Date: Wed, 18 Oct 2023 06:49:20 +0000 Subject: [PATCH] CLASSROOMIO-T-219: Backend Prmpt Change (Exercise) Co-authored-by: Tunji Adeyemi Merge-request: CLASSROOMIO-MR-105 Merged-by: Best Admin --- src/routes/api/completion/exerciseprompt/+server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/api/completion/exerciseprompt/+server.js b/src/routes/api/completion/exerciseprompt/+server.js index 7f09272c..9636e9ac 100644 --- a/src/routes/api/completion/exerciseprompt/+server.js +++ b/src/routes/api/completion/exerciseprompt/+server.js @@ -58,7 +58,7 @@ interface ExerciseTemplate { } I am a teacher and I need your help evaluating my students after I have taught a lesson. Please generate a test with ${questionNumber} questions and ${optionNumber} options. The sourse of this test should come from my lesson note in thripple quotes: """${lessonNote}""". Format the quiz to match the ExerciseTemplate interface above and VERY IMPORTANTANTLY: ONLY RETURN JSON FORMAT AND DO NOT EXPLAIN ANTHING. -NB: Ask a mixture of 10 DIFFERENT Question Types(RADIO, CHECKBOX AND TEXTAREA), mark the correct answer.`; +NB: Ask a mixture of ${optionNumber} options and ${questionNumber} DIFFERENT Question Types(RADIO, CHECKBOX AND TEXTAREA), mark the correct answer.`; const response = await openai.createChatCompletion({ model: 'gpt-3.5-turbo',