This commit is contained in:
shadowcz007
2024-10-15 17:44:11 +08:00
parent e55bdb5987
commit 717011855f
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -1290,7 +1290,7 @@ try:
NODE_DISPLAY_NAME_MAPPINGS.update(NODE_DISPLAY_NAME_MAPPINGS_V)
except Exception as e:
logging.info('ChatGPT.available False')
logging.info('ChatGPT.available False',e)
try:
+4 -1
View File
@@ -137,9 +137,12 @@ class LoadSocialProfileNode:
CATEGORY = "♾️Mixlab/Agent"
def run(self,file_name):
# print("#read_from_json",os.path.join(agent_dir,file_name))
social_profile=read_from_json(os.path.join(agent_dir,file_name))
if social_profile==None:
social_profile=default_agent
social_profile['file_name']=file_name
# 将社交名片转换为JSON字符串