Skip to content

Commit

Permalink
remove redundant line
Browse files Browse the repository at this point in the history
the line removed was redundant - the `source_text` gets already replaced through the f"-string
  • Loading branch information
rdmueller authored Jun 11, 2024
1 parent ef53445 commit cc5c322
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/translation_agent/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cc5c322

Please sign in to comment.