Commit 209ccdf6 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac

parent e5dd7e65
......@@ -46,7 +46,7 @@ async def get_session_user_chat_list(
user=Depends(get_verified_user), page: Optional[int] = None
):
if page is not None:
limit = 20
limit = 60
skip = (page - 1) * limit
return Chats.get_chat_title_id_list_by_user_id(user.id, skip=skip, limit=limit)
......
import { v4 as uuidv4 } from 'uuid';
import sha256 from 'js-sha256';
import { WEBUI_BASE_URL } from '$lib/constants';
import { scrollPaginationEnabled, chats, currentChatPage } from '$lib/stores';
import { getChatList } from '$lib/apis/chats';
//////////////////////////
// Helper functions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment