Commit 127df0d6 127df0d66017d1731016b358ae19a76ed51b161d by 沈秋雨

Use MinerU files multipart field

1 parent 599453fa
......@@ -135,7 +135,7 @@ def parse_pdf_with_http(
with target.open("rb") as file:
response = requests.post(
f"{base_url}{endpoint}",
files={"file": (target.name, file, "application/pdf")},
files=[("files", (target.name, file, "application/pdf"))],
headers=headers,
timeout=int(mineru_config.get("timeout_seconds", 600)),
)
......