[Mem0] Update dependencies and make the package lighter (#1708)
Co-authored-by: Dev-Khant <devkhant24@gmail.com>
This commit is contained in:
@@ -20,12 +20,12 @@ def setup_config():
|
||||
def get_user_id():
|
||||
config_path = os.path.join(mem0_dir, "config.json")
|
||||
if not os.path.exists(config_path):
|
||||
return "anonymous_user"
|
||||
|
||||
return "anonymous_user"
|
||||
|
||||
try:
|
||||
with open(config_path, "r") as config_file:
|
||||
config = json.load(config_file)
|
||||
user_id = config.get("user_id")
|
||||
return user_id
|
||||
except:
|
||||
except Exception:
|
||||
return "anonymous_user"
|
||||
|
||||
Reference in New Issue
Block a user