jack 1 miesiąc temu
rodzic
commit
592ae8dec4

+ 4 - 1
py/core/main/api/v3/documents_router.py

@@ -315,13 +315,16 @@ class DocumentsRouter(BaseRouterV3):
                     )
 
                 # Get chunks using the vector handler's list_chunks method
-                user_chunk_count = (
+                user_chunk_count = 0
+                '''
+                (
                     await self.services.ingestion.list_chunks(
                         filters={"owner_id": {"$eq": str(auth_user.id)}},
                         offset=0,
                         limit=1,
                     )
                 )["total_entries"]
+                '''
                 user_max_chunks = (
                     await self.services.management.get_user_max_chunks(
                         auth_user.id

+ 4 - 1
py/updatecode/documents_router.py

@@ -328,13 +328,16 @@ class DocumentsRouter(BaseRouterV3):
                     )
 
                 # Get chunks using the vector handler's list_chunks method
-                user_chunk_count = (
+                user_chunk_count = 0
+                '''
+                (
                     await self.services.ingestion.list_chunks(
                         filters={"owner_id": {"$eq": str(auth_user.id)}},
                         offset=0,
                         limit=1,
                     )
                 )["total_entries"]
+                '''
                 user_max_chunks = (
                     await self.services.management.get_user_max_chunks(
                         auth_user.id