mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-05 19:15:34 +00:00
fix: cli
This commit is contained in:
parent
034b954363
commit
39431f3cb6
@ -428,7 +428,6 @@ So you are close to reaching the limit. You have to choose your own value, there
|
|||||||
single_translate=options.single_translate,
|
single_translate=options.single_translate,
|
||||||
context_flag=options.context_flag,
|
context_flag=options.context_flag,
|
||||||
temperature=options.temperature,
|
temperature=options.temperature,
|
||||||
interval=options.interval,
|
|
||||||
)
|
)
|
||||||
# other options
|
# other options
|
||||||
if options.allow_navigable_strings:
|
if options.allow_navigable_strings:
|
||||||
@ -487,13 +486,13 @@ So you are close to reaching the limit. You have to choose your own value, there
|
|||||||
e.batch_flag = options.batch_flag
|
e.batch_flag = options.batch_flag
|
||||||
if options.batch_use_flag:
|
if options.batch_use_flag:
|
||||||
e.batch_use_flag = options.batch_use_flag
|
e.batch_use_flag = options.batch_use_flag
|
||||||
|
if options.interval:
|
||||||
|
e.interval = options.interval
|
||||||
if options.model == "gemini":
|
if options.model == "gemini":
|
||||||
if options.model_list:
|
if options.model_list:
|
||||||
e.translate_model.set_model_list(options.model_list.split(","))
|
e.translate_model.set_model_list(options.model_list.split(","))
|
||||||
else:
|
else:
|
||||||
e.translate_model.set_geminiflash_models()
|
e.translate_model.set_geminiflash_models()
|
||||||
|
|
||||||
if options.model == "geminipro":
|
if options.model == "geminipro":
|
||||||
e.translate_model.set_geminipro_models()
|
e.translate_model.set_geminipro_models()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user