|
@@ -51,7 +51,7 @@ class R2RFileService(OSSFileService):
|
|
|
# storage.save_from_path(filename=file_key, local_file_path=tmp_file_path)
|
|
|
r2r = R2R()
|
|
|
# await r2r.init()
|
|
|
- fileinfo = r2r.ingest_file_sync(
|
|
|
+ fileinfo = await r2r.ingest_file(
|
|
|
file_path=tmp_file_path,
|
|
|
metadata={"file_key": file_key, "title": file.filename},
|
|
|
)
|