Skip to content

Commit

Permalink
Bugfix: gpt4 translator didnt use chat_system_template variable
Browse files Browse the repository at this point in the history
  • Loading branch information
thatDudo committed Nov 7, 2023
1 parent 5c1816f commit c03cfb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manga_translator/translators/chatgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -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},
]

Expand Down

0 comments on commit c03cfb7

Please sign in to comment.