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.

fix: Patch quickstart via run on empty dir (#682)

Charles Packer0b765ee95bce
diff --git a/memgpt/cli/cli.py b/memgpt/cli/cli.py
index 52b54f989..5e27a085f 100644
--- a/memgpt/cli/cli.py
+++ b/memgpt/cli/cli.py
@@ -322,10 +322,14 @@ def run(
).ask()
if config_selection == config_choices["memgpt"]:
- quickstart(backend=QuickstartChoice.memgpt_hosted, debug=debug, terminal=False)
+ MemGPTConfig.create_config_dir()
+ quickstart(backend=QuickstartChoice.memgpt_hosted, debug=debug, terminal=False, latest=False)
elif config_selection == config_choices["openai"]:
- quickstart(backend=QuickstartChoice.openai, debug=debug, terminal=False)
+ MemGPTConfig.create_config_dir()
+ quickstart(backend=QuickstartChoice.openai, debug=debug, terminal=False, latest=False)
elif config_selection == config_choices["other"]:
+ # create_config_dir() is run inside configure()
+ # MemGPTConfig.create_config_dir()
configure()
else:
raise ValueError(config_selection)