jack 11 月之前
父节点
当前提交
33d27321b0
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      app/services/file/impl/r2r_file.py

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

@@ -140,7 +140,7 @@ class R2RFileService(OSSFileService):
                         "text": doc.text,
                         "title": doc.metadata["title"],
                         "url": "https://r2r.s3.cn-north-1.amazonaws.com.cn/r2r/documents/"
-                        + doc.document_id,
+                        + str(doc.document_id),
                     }
                 )
             # print(doc.metadata)