From 2d5972e76d022cda94a9cc9b9d2d011aa9a614f4 Mon Sep 17 00:00:00 2001 From: BoHao Wang Date: Sun, 5 Mar 2023 21:56:53 +0800 Subject: [PATCH] fix: invalid target language when TIME LIMIT (#52) --- make_book.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_book.py b/make_book.py index 3728741..486861f 100644 --- a/make_book.py +++ b/make_book.py @@ -124,7 +124,7 @@ class ChatGPT(Base): messages=[ { "role": "user", - "content": f"Please help me to translate,`{text}` to Simplified Chinese, please return only translated content not include the origin text", + "content": f"Please help me to translate,`{text}` to {self.language}, please return only translated content not include the origin text", } ], )