diff --git a/backend/open_webui/routers/knowledge.py b/backend/open_webui/routers/knowledge.py index 3eae210e14..6c08c9b0bc 100644 --- a/backend/open_webui/routers/knowledge.py +++ b/backend/open_webui/routers/knowledge.py @@ -567,8 +567,10 @@ def sync_file_to_knowledge_by_id( ProcessFileForm(file_id=new_file.id, collection_name=id), user=user, ) - log.info(f"[KB Sync] replace kb_id={id} old_id={same_name_file.id} " - f"new_id={new_file.id} name={new_file.filename}") + log.info( + f"[KB Sync] replace kb_id={id} old_id={same_name_file.id} " + f"new_id={new_file.id} name={new_file.filename}" + ) # Replace old id with new id in knowledge file_ids = [fid for fid in file_ids if fid != same_name_file.id]