Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmueller authored Jul 6, 2024
1 parent cc5c322 commit 9b628fe
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/translation_agent/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,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


Expand Down

0 comments on commit 9b628fe

Please sign in to comment.