diff --git a/translator_script.py b/translator_script.py index d11bc99fa56c5ac76f13e616e42a8d97650398cd..4efeecc6f7db9a0728d6227858bc49f7c84770d7 100644 --- a/translator_script.py +++ b/translator_script.py @@ -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