Skip to content

Commit 43a87b7

Browse files
committed
rename to get_prompt()
to refactor
1 parent e5b0953 commit 43a87b7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ai_tutor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def gemini_qna(
105105
logging.info(f"Student files: {student_files}")
106106
logging.info(f"Readme file: {readme_file}")
107107

108-
consolidated_question = get_the_question(
108+
consolidated_question = get_prompt(
109109
report_paths,
110110
student_files,
111111
readme_file,
@@ -117,7 +117,7 @@ def gemini_qna(
117117
return answers
118118

119119

120-
def get_the_question(
120+
def get_prompt(
121121
report_paths:Tuple[pathlib.Path],
122122
student_files:Tuple[pathlib.Path],
123123
readme_file:pathlib.Path,

tests/test_ai_tutor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def test_get_the_question(
212212
msg:str,
213213
instruction:str,
214214
):
215-
result = ai_tutor.get_the_question(
215+
result = ai_tutor.get_prompt(
216216
report_paths=(sample_report_path,div_zero_report_path),
217217
student_files=(sample_student_code_path,),
218218
readme_file=sample_readme_path,

0 commit comments

Comments
 (0)