fix logging when loading prompt libs
This commit is contained in:
parent
26f578c687
commit
573b15befb
|
@ -198,7 +198,7 @@ def load_prompt_library(args) -> None:
|
||||||
for prompt_file in args.prompts:
|
for prompt_file in args.prompts:
|
||||||
with open(prompt_file, "r") as f:
|
with open(prompt_file, "r") as f:
|
||||||
new_library = PromptLibrary(**load_yaml(f))
|
new_library = PromptLibrary(**load_yaml(f))
|
||||||
logger.info(f"loaded prompt library from {args.prompts}")
|
logger.info(f"loaded prompt library from {prompt_file}")
|
||||||
library = get_prompt_library()
|
library = get_prompt_library()
|
||||||
library.prompts.update(new_library.prompts)
|
library.prompts.update(new_library.prompts)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue