mirror of
https://github.com/open-webui/open-webui.git
synced 2026-04-29 17:06:40 -05:00
refac
This commit is contained in:
@@ -1934,6 +1934,7 @@ async def process_web(
|
|||||||
request: Request,
|
request: Request,
|
||||||
form_data: ProcessUrlForm,
|
form_data: ProcessUrlForm,
|
||||||
process: bool = Query(True, description="Whether to process and save the content"),
|
process: bool = Query(True, description="Whether to process and save the content"),
|
||||||
|
overwrite: bool = Query(True, description="Whether to overwrite existing collection"),
|
||||||
user=Depends(get_verified_user),
|
user=Depends(get_verified_user),
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
@@ -1953,7 +1954,7 @@ async def process_web(
|
|||||||
request,
|
request,
|
||||||
docs,
|
docs,
|
||||||
collection_name,
|
collection_name,
|
||||||
overwrite=True,
|
overwrite=overwrite,
|
||||||
user=user,
|
user=user,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user