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: data source count error (#2450)

Shubham Naike8768a6e5959
diff --git a/letta/server/rest_api/routers/v1/sources.py b/letta/server/rest_api/routers/v1/sources.py
index d21ed1292..aef656887 100644
--- a/letta/server/rest_api/routers/v1/sources.py
+++ b/letta/server/rest_api/routers/v1/sources.py
@@ -29,7 +29,7 @@ async def count_sources(
"""
Count all data sources created by a user.
"""
- actor = server.user_manager.get_actor_or_default_async(actor_id=actor_id)
+ actor = await server.user_manager.get_actor_or_default_async(actor_id=actor_id)
return await server.source_manager.size_async(actor=actor)