From c03cfb70dc25e0181e360bbf69dcd42522e4963b Mon Sep 17 00:00:00 2001 From: thatDudo Date: Tue, 7 Nov 2023 16:45:34 +0100 Subject: [PATCH] Bugfix: gpt4 translator didnt use chat_system_template variable --- manga_translator/translators/chatgpt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manga_translator/translators/chatgpt.py b/manga_translator/translators/chatgpt.py index b9c48e44f..e68b9bf04 100644 --- a/manga_translator/translators/chatgpt.py +++ b/manga_translator/translators/chatgpt.py @@ -282,7 +282,7 @@ class GPT4Translator(GPT35TurboTranslator): async def _request_translation(self, to_lang: str, prompt: str) -> str: messages = [ - {'role': 'system', 'content': self._CHAT_SYSTEM_TEMPLATE.format(to_lang=to_lang)}, + {'role': 'system', 'content': self.chat_system_template.format(to_lang=to_lang)}, {'role': 'user', 'content': prompt}, ]