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: asyncgp ssl param (#2147)

Andy Li30284030078f
diff --git a/letta/server/db.py b/letta/server/db.py
index 57fbdd530..32dbb13ef 100644
--- a/letta/server/db.py
+++ b/letta/server/db.py
@@ -123,6 +123,7 @@ class DatabaseRegistry:
async_pg_uri = pg_uri.replace("postgresql://", "postgresql+asyncpg://")
else:
async_pg_uri = f"postgresql+asyncpg://{pg_uri.split('://', 1)[1]}" if "://" in pg_uri else pg_uri
+ async_pg_uri = async_pg_uri.replace("sslmode=", "ssl=")
async_engine = create_async_engine(
async_pg_uri,