@@ -281,7 +281,7 @@ def __init__(self, formatter: TextFormatter):
281281 def create_messages (self , general_context : str , specific_context : str , sample_questions : str , question : str ,
282282 language : str , study_program ):
283283 """Converts the template into a message format suitable for LLMs like OpenAI's GPT."""
284- study_program_text = self .format_study_program (study_program , language )
284+ study_program_text = self .formatter . format_study_program (study_program , language )
285285 # Construct the system prompt
286286 if language .lower () == "english" :
287287 user_content = self .answer_prompt_template .format (
@@ -314,7 +314,7 @@ def create_messages(self, general_context: str, specific_context: str, sample_qu
314314 def create_messages_with_history (self , general_context : str , specific_context : str , question : str , history : str ,
315315 sample_questions : str , language : str , study_program : str ):
316316 """Converts the template into a message format suitable for LLMs like OpenAI's GPT."""
317- study_program_text = self .format_study_program (study_program , language )
317+ study_program_text = self .formatter . format_study_program (study_program , language )
318318 # Construct the system prompt including history
319319 if language .lower () == "english" :
320320 user_content = self .answer_prompt_template_with_history .format (
0 commit comments