mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 14:55:23 +00:00
refac
This commit is contained in:
parent
46bbf760e8
commit
66ffd77f2c
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ async def create_new_chat(form_data: ChatForm, user=Depends(get_verified_user)):
|
||||||
############################
|
############################
|
||||||
|
|
||||||
|
|
||||||
@router.post("/import", response_model=Optional[ChatResponse])
|
@router.post("/import", response_model=list[ChatResponse])
|
||||||
async def import_chats(form_data: ChatsImportForm, user=Depends(get_verified_user)):
|
async def import_chats(form_data: ChatsImportForm, user=Depends(get_verified_user)):
|
||||||
try:
|
try:
|
||||||
chats = Chats.import_chats(user.id, form_data.chats)
|
chats = Chats.import_chats(user.id, form_data.chats)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue