Add files via upload

This commit is contained in:
smthemex
2024-04-07 20:11:21 +08:00
committed by GitHub
parent 12dc52ef3f
commit 7ec2c5e3f3
+25
View File
@@ -0,0 +1,25 @@
import os
import sys
import json
python = sys.executable
# create config
if not os.path.isfile(os.path.join(os.path.dirname(os.path.realpath(__file__)),"config.json")):
config = {
"Zpai_API_KEY": "your key"
}
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)),"config.json"), "w") as f:
json.dump(config, f, indent=4)
#load config
with open(os.path.join(os.path.dirname(os.path.realpath(__file__)),"config.json"), "r") as f:
config = json.load(f)
from .ChatGLM4_API_Node import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
# Combine the dictionaries
#NODE_CLASS_MAPPINGS = {**NODE_CLASS_MAPPINGS_G}
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']