Skip to content

Commit 20be554

Browse files
committed
move instruction block before error messages
1 parent 9570ae9 commit 20be554

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

ai_tutor.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,14 @@ def get_initial_instruction(questions:List[str],language:str) -> str:
139139

140140
prompt_list = (
141141
# Add the initial instruction
142-
[get_initial_instruction(pytest_longrepr_list, explanation_in),]
142+
[
143+
get_initial_instruction(pytest_longrepr_list, explanation_in),
144+
get_instruction_block(readme_file, explanation_in,),
145+
]
143146
+ pytest_longrepr_list
144147
# Add the code and instructions
145148
+ [
146149
get_student_code_block(student_files, explanation_in,),
147-
get_instruction_block(readme_file, explanation_in,)
148150
]
149151
)
150152

0 commit comments

Comments
 (0)