mirror of
https://github.com/cpacker/MemGPT.git
synced 2025-06-03 04:30:22 +00:00
13 lines
474 B
Python
13 lines
474 B
Python
from tqdm import tqdm
|
|
|
|
from letta.schemas.user import User
|
|
from letta.services.organization_manager import OrganizationManager
|
|
from letta.services.tool_manager import ToolManager
|
|
|
|
orgs = OrganizationManager().list_organizations(cursor=None, limit=5000)
|
|
for org in tqdm(orgs):
|
|
if org.name != "default":
|
|
fake_user = User(id="user-00000000-0000-4000-8000-000000000000", name="fake", organization_id=org.id)
|
|
|
|
ToolManager().upsert_base_tools(actor=fake_user)
|