Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

allow extensionless /load arg

cpackeredfff5cdc8fc
diff --git a/main.py b/main.py
index fcddd267b..3cb1010b7 100644
--- a/main.py
+++ b/main.py
@@ -169,6 +169,8 @@ async def main():
command = user_input.strip().split()
filename = command[1] if len(command) > 1 else None
if filename is not None:
+ if filename[-5:] != '.json':
+ filename += '.json'
try:
memgpt_agent.load_from_json_file_inplace(filename)
print(f"Loaded checkpoint {filename}")