You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PROMPT_PROTOTYPE="As an academic expert with specialized knowledge in various fields, please provide a proficient and precise translation translation from {} to {} of the academic text enclosed in 🔤. It is crucial to maintaining the original phrase or sentence and ensure accuracy while utilizing the appropriate language. Please provide only the translated result without any additional explanation and remove 🔤. The text is as follows: 🔤 {} 🔤 "
19
+
#prompt prototype changed from https://github.com/windingwind/zotero-pdf-translate
parser.add_argument("-engine", default=config.default_engine, help=f'translation engine, avaiable options include google and tencent. default is {config.default_engine}')
88
+
parser.add_argument("-engine", default=config.default_engine, help=f'translation engine, avaiable options include [google, tencent, gpt]. default is {config.default_engine}')
89
89
parser.add_argument("-from", default=config.default_language_from, dest='l_from', help=f'language from, default is {config.default_language_from}')
90
90
parser.add_argument("-to", default=config.default_language_to, dest='l_to', help=f'language to, default is {config.default_language_to}')
91
91
parser.add_argument("-threads", default=config.default_threads, type=int, help='threads for tencent translation, default is auto')
@@ -96,6 +96,7 @@ def add_arguments(parser):
96
96
parser.add_argument("--setdefault", action='store_true', help='set default translation engine and languages')
97
97
parser.add_argument("--debug", action='store_true', help='Debug options for developers')
98
98
parser.add_argument("--nocache", action='store_true', help='Debug options for developers')
99
+
parser.add_argument("--setgpt",action='store_true',help='set baseUrl,apiKey and model name of your GPT service')
0 commit comments