From e9942536566323b5da6c3ea11a2869c74b96b13d Mon Sep 17 00:00:00 2001 From: liguo Date: Wed, 26 Jun 2024 09:54:17 +0800 Subject: [PATCH] config.json --- __init__.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 5eb68b3..aad2c23 100644 --- a/__init__.py +++ b/__init__.py @@ -1,7 +1,14 @@ +import os +import shutil +from .constants import project_root + +config_file_path = os.path.join(project_root, "config.json") +if not os.path.exists(config_file_path): + config_template_file_path = os.path.join(project_root, "config_template.json") + shutil.copy(config_template_file_path, config_file_path) from .siliconflow import FreeChat,PaidChat - # A dictionary that contains all nodes you want to export with their names # NOTE: names should be globally unique NODE_CLASS_MAPPINGS = {