Open-Assistant icon indicating copy to clipboard operation
Open-Assistant copied to clipboard

Pagination in chat listing

Open yk opened this issue 2 years ago • 3 comments

yk avatar Apr 16 '23 08:04 yk

Hey @yk is this feature open for contributor? I can take this

We need pagination for this page right?

Image

What is the API for pagination? I saw we use api/chat to get all the chat threads

Will we prefer "Show more" (like chatGPT) or "page 1,2,3" type of pagination?

mtosity avatar Apr 17 '23 03:04 mtosity

@mtosity thanks, we need a cursor pagination. the UI has to fetch more chat when scrolling down

notmd avatar Apr 17 '23 03:04 notmd

What is the API for pagination? I saw we use api/chat to get all the chat threads

https://github.com/LAION-AI/Open-Assistant/blob/main/inference/server/oasst_inference_server/routes/chats.py#L20

notmd avatar Apr 17 '23 03:04 notmd

@mtosity this is now possible. would you like to build on top of https://github.com/LAION-AI/Open-Assistant/pull/2773 ?

yk avatar Apr 22 '23 08:04 yk

@yk Would love to, the api from #2773 works great in my local

mtosity avatar Apr 22 '23 21:04 mtosity