jack 1 tháng trước cách đây
mục cha
commit
c6133d6845
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/services/file/impl/r2r_file.py

+ 2 - 1
app/services/file/impl/r2r_file.py

@@ -55,7 +55,8 @@ class R2RFileService(OSSFileService):
             fileinfo = await r2r.ingest_file(
                 file_path=tmp_file_path,
                 metadata={"file_key": file_key, "title": file.filename},
-            ).get("results")
+            )
+            fileinfo = fileinfo.get("results")
         # 存储
         db_file = File(
             purpose=purpose,