fix: prompt expansion bug

This commit is contained in:
Bryce 2022-10-10 00:32:43 -07:00 committed by Bryce Drennan
parent 83db4ad795
commit 0db5c329bb

View File

@ -20,7 +20,7 @@ def prompt_library_filepaths(prompt_library_paths=None):
"""Return all available category/filepath pairs""" """Return all available category/filepath pairs"""
prompt_library_paths = [] if not prompt_library_paths else prompt_library_paths prompt_library_paths = [] if not prompt_library_paths else prompt_library_paths
combined_prompt_library_filepaths = {} combined_prompt_library_filepaths = {}
for prompt_path in DEFAULT_PROMPT_LIBRARY_PATHS + prompt_library_paths: for prompt_path in DEFAULT_PROMPT_LIBRARY_PATHS + list(prompt_library_paths):
library_prompts = prompt_library_filepath(prompt_path) library_prompts = prompt_library_filepath(prompt_path)
combined_prompt_library_filepaths.update(library_prompts) combined_prompt_library_filepaths.update(library_prompts)