fix: debug logs in server (#1452) (#1457)

Co-authored-by: Ethan Knox <ethan.m.knox@gmail.com>
This commit is contained in:
Sarah Wooders
2024-06-16 19:21:53 -07:00
committed by GitHub
parent 24f21284a1
commit b1fbece818
15 changed files with 94 additions and 80 deletions

View File

@@ -29,7 +29,6 @@ test_server_token = "test_server_token"
def _reset_config():
# Use os.getenv with a fallback to os.environ.get
db_url = settings.memgpt_pg_uri
@@ -51,14 +50,12 @@ def _reset_config():
config.archival_storage_type = "postgres"
config.recall_storage_type = "postgres"
config.metadata_storage_type = "postgres"
config.save()
credentials.save()
print("_reset_config :: ", config.config_path)
def run_server():
load_dotenv()
_reset_config()