Skip to content
Snippets Groups Projects
Commit 94b093c0 authored by Juuso Rytilahti's avatar Juuso Rytilahti
Browse files

Added missing line

parent c09805b9
No related branches found
No related tags found
No related merge requests found
......@@ -140,6 +140,7 @@ def get_recursive_translation(chunk, i, previous_messages, attempt=1, max_attemp
ChatGPT has tendency to (sometimes) repeat the previous translation again in the new message.
If that happens, try to translate the chunk again.
"""
trans = get_translation_for_chunk(chunk, i, previous_messages=copy.deepcopy(previous_messages))
if not trans:
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment