From 717011855f76c564c8af9db8c7bbf5f0d081b0ca Mon Sep 17 00:00:00 2001 From: shadowcz007 Date: Tue, 15 Oct 2024 17:44:11 +0800 Subject: [PATCH] update --- __init__.py | 2 +- nodes/SocialProfile.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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字符串