This commit is contained in:
Timothy J. Baek 2024-08-04 17:35:26 +02:00
parent e5dd7e65d4
commit 209ccdf668
2 changed files with 1 additions and 3 deletions

View File

@ -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)

View File

@ -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