From 91e6823b24555814c5877ab27801bae18740bc00 Mon Sep 17 00:00:00 2001 From: Veden Date: Thu, 21 Dec 2023 21:25:59 -0800 Subject: [PATCH] fixed method invocation in get_template_from_model_json --- templating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templating.py b/templating.py index fe9207d..86bcee8 100644 --- a/templating.py +++ b/templating.py @@ -61,7 +61,7 @@ def get_template_from_file(prompt_template_name: str): # Get a template from a JSON file # Requires a key and template name def get_template_from_model_json(json_path: pathlib.Path, key: str, name: str): - if json_path.exists: + if json_path.exists(): with open(json_path, "r", encoding = "utf8") as config_file: model_config = json.load(config_file) chat_template = model_config.get(key)