Skip to content

Commit

Permalink
fix: cli
Browse files Browse the repository at this point in the history
  • Loading branch information
risin42 committed Oct 15, 2024
1 parent 034b954 commit 39431f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions book_maker/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ def main():
single_translate=options.single_translate,
context_flag=options.context_flag,
temperature=options.temperature,
interval=options.interval,
)
# other options
if options.allow_navigable_strings:
Expand Down Expand Up @@ -487,13 +486,13 @@ def main():
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()

Expand Down

0 comments on commit 39431f3

Please sign in to comment.