Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhogg committed Feb 1, 2024
1 parent 37d0534 commit 844ff11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gptauthor/library/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def do_writing(llm_config):

output_folder = utils.get_folder(synopsis_title, synopsis_chapters, llm_config)
safe_llm_config = llm_config.copy()
del safe_llm_config["api_key"]
del safe_llm_config["api_key"] # NOTE: remove api_key so it isn't printed
safe_llm_config["app_version"] = consts.version
safe_llm_config["output_folder"] = str(output_folder)
safe_llm_config["datetime"] = datetime.now().strftime("%Y%m%d-%H%M%S")
Expand Down Expand Up @@ -107,7 +107,7 @@ def do_writing(llm_config):
p(
f"Rough synopsis GPT3.5 4k price: ${utils.gpt35_4k_price_estimate(synopsis_total_tokens):.3f} (estimated, check your usage!)"
)
p(f"\n{llm_config=}\n")
p(f"\n{safe_llm_config=}\n")

if len(synopsis_title) > 100:
logger.warning(f"Unexpected synopsis_title length! {len(synopsis_title)=}, synopsis_title='{synopsis_title}'")
Expand Down

0 comments on commit 844ff11

Please sign in to comment.