mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 00:59:52 +00:00
refac
This commit is contained in:
parent
e5dd7e65d4
commit
209ccdf668
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user