From 39431f3cb61c5bb4221ff158e2ca2c425580278c Mon Sep 17 00:00:00 2001 From: risin42 <5331402+risin42@users.noreply.github.com> Date: Wed, 16 Oct 2024 00:09:10 +0900 Subject: [PATCH] fix: cli --- book_maker/cli.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/book_maker/cli.py b/book_maker/cli.py index a27a6e6..af1b6af 100644 --- a/book_maker/cli.py +++ b/book_maker/cli.py @@ -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, context_flag=options.context_flag, temperature=options.temperature, - interval=options.interval, ) # other options 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 if 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_list: e.translate_model.set_model_list(options.model_list.split(",")) else: e.translate_model.set_geminiflash_models() - if options.model == "geminipro": e.translate_model.set_geminipro_models()