diff --git a/__init__.py b/__init__.py index db423b7..18af7f0 100644 --- a/__init__.py +++ b/__init__.py @@ -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: diff --git a/nodes/SocialProfile.py b/nodes/SocialProfile.py index 3a5bc8e..4289afe 100644 --- a/nodes/SocialProfile.py +++ b/nodes/SocialProfile.py @@ -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字符串