From 29bfbb7c04c0e2113492129d1798506c09c02804 Mon Sep 17 00:00:00 2001 From: Jason Park Date: Mon, 27 Nov 2023 01:16:44 +0900 Subject: [PATCH] fix: fixing post chat lambda to take additional args for prompt generater --- src/lambda/post-chat/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lambda/post-chat/index.py b/src/lambda/post-chat/index.py index 425ad5835..6682e1316 100644 --- a/src/lambda/post-chat/index.py +++ b/src/lambda/post-chat/index.py @@ -8,7 +8,7 @@ def post_chat(prompt, timetable): recommender = CourseRecommender(s3_client, bucket, school_code_map) - prompt = recommender.generate_gpt_prompt(timetable) + prompt = recommender.generate_gpt_prompt(prompt, timetable) response = ai_client.chat.completions.create( model= "gpt-3.5-turbo-1106",