mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
refac/fix: files batch/add endpoint
This commit is contained in:
parent
64b4d5d9c2
commit
28659f6af5
1 changed files with 2 additions and 2 deletions
|
|
@ -708,7 +708,7 @@ async def reset_knowledge_by_id(id: str, user=Depends(get_verified_user)):
|
|||
|
||||
|
||||
@router.post("/{id}/files/batch/add", response_model=Optional[KnowledgeFilesResponse])
|
||||
def add_files_to_knowledge_batch(
|
||||
async def add_files_to_knowledge_batch(
|
||||
request: Request,
|
||||
id: str,
|
||||
form_data: list[KnowledgeFileIdForm],
|
||||
|
|
@ -748,7 +748,7 @@ def add_files_to_knowledge_batch(
|
|||
|
||||
# Process files
|
||||
try:
|
||||
result = process_files_batch(
|
||||
result = await process_files_batch(
|
||||
request=request,
|
||||
form_data=BatchProcessFilesForm(files=files, collection_name=id),
|
||||
user=user,
|
||||
|
|
|
|||
Loading…
Reference in a new issue