forked from open-webui/open-webui
refac: replace timestamp field
This commit is contained in:
parent
50e8979c00
commit
b12edb4a7a
7 changed files with 240 additions and 19 deletions
|
@ -47,6 +47,18 @@ async def get_user_chats(
|
|||
return Chats.get_chat_lists_by_user_id(user.id, skip, limit)
|
||||
|
||||
|
||||
############################
|
||||
# GetArchivedChats
|
||||
############################
|
||||
|
||||
|
||||
@router.get("/archived", response_model=List[ChatTitleIdResponse])
|
||||
async def get_archived_user_chats(
|
||||
user=Depends(get_current_user), skip: int = 0, limit: int = 50
|
||||
):
|
||||
return Chats.get_archived_chat_lists_by_user_id(user.id, skip, limit)
|
||||
|
||||
|
||||
############################
|
||||
# GetAllChats
|
||||
############################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue