diff --git a/src/translation_agent/utils.py b/src/translation_agent/utils.py index 1256281..0a0ddf7 100755 --- a/src/translation_agent/utils.py +++ b/src/translation_agent/utils.py @@ -93,9 +93,7 @@ def one_chunk_initial_translation( {target_lang}:""" - prompt = translation_prompt.format(source_text=source_text) - - translation = get_completion(prompt, system_message=system_message) + translation = get_completion(translation_prompt, system_message=system_message) return translation @@ -171,13 +169,7 @@ def one_chunk_reflect_on_translation( Each suggestion should address one specific part of the translation. Output only the suggestions and nothing else.""" - prompt = reflection_prompt.format( - source_lang=source_lang, - target_lang=target_lang, - source_text=source_text, - translation_1=translation_1, - ) - reflection = get_completion(prompt, system_message=system_message) + reflection = get_completion(reflection_prompt, system_message=system_message) return reflection