1
0
Fork 0

fix logging when loading prompt libs
Run Docker Build / build (push) Successful in 19s Details
Run Python Build / build (push) Successful in 27s Details

This commit is contained in:
Sean Sube 2024-06-04 08:59:50 -05:00
parent 26f578c687
commit 573b15befb
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 1 additions and 1 deletions

View File

@ -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)