fix: prompt expansion bug

pull/54/head
Bryce 2 years ago committed by Bryce Drennan
parent 83db4ad795
commit 0db5c329bb

@ -20,7 +20,7 @@ def prompt_library_filepaths(prompt_library_paths=None):
"""Return all available category/filepath pairs"""
prompt_library_paths = [] if not prompt_library_paths else prompt_library_paths
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)
combined_prompt_library_filepaths.update(library_prompts)

Loading…
Cancel
Save