diff --git a/src/main/java/com/beotkkot/qtudy/service/quiz/QuizService.java b/src/main/java/com/beotkkot/qtudy/service/quiz/QuizService.java index af480dd..d198f75 100644 --- a/src/main/java/com/beotkkot/qtudy/service/quiz/QuizService.java +++ b/src/main/java/com/beotkkot/qtudy/service/quiz/QuizService.java @@ -63,7 +63,7 @@ public String generateQuiz(GenerateQuizRequestDto genQuizReqDto) throws JsonProc Map requestBody = new HashMap<>(); requestBody.put("messages", messages); - requestBody.put("model", "gpt-4-1106-preview"); + requestBody.put("model","gpt-3.5-turbo"); // "gpt-4-1106-preview" requestBody.put("temperature", 0.0f); requestBody.put("max_tokens", 4000); @@ -115,6 +115,7 @@ public void saveQuiz(PostQuizRequestDto saveQuizDto) { .explanation(saveQuizDto.getQuizDto().getExplanation()) .build(); + quizRepo.save(quiz); }