Timothy J. Baek il y a 9 mois
Parent
commit
209ccdf668
2 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 1
      backend/apps/webui/routers/chats.py
  2. 0 2
      src/lib/utils/index.ts

+ 1 - 1
backend/apps/webui/routers/chats.py

@@ -46,7 +46,7 @@ async def get_session_user_chat_list(
     user=Depends(get_verified_user), page: Optional[int] = None
     user=Depends(get_verified_user), page: Optional[int] = None
 ):
 ):
     if page is not None:
     if page is not None:
-        limit = 20
+        limit = 60
         skip = (page - 1) * limit
         skip = (page - 1) * limit
 
 
         return Chats.get_chat_title_id_list_by_user_id(user.id, skip=skip, limit=limit)
         return Chats.get_chat_title_id_list_by_user_id(user.id, skip=skip, limit=limit)

+ 0 - 2
src/lib/utils/index.ts

@@ -1,8 +1,6 @@
 import { v4 as uuidv4 } from 'uuid';
 import { v4 as uuidv4 } from 'uuid';
 import sha256 from 'js-sha256';
 import sha256 from 'js-sha256';
 import { WEBUI_BASE_URL } from '$lib/constants';
 import { WEBUI_BASE_URL } from '$lib/constants';
-import { scrollPaginationEnabled, chats, currentChatPage } from '$lib/stores';
-import { getChatList } from '$lib/apis/chats';
 
 
 //////////////////////////
 //////////////////////////
 // Helper functions
 // Helper functions