Open
Conversation
This was referenced Mar 22, 2026
Open
|
你的意思是https://mineru.net为mineru的base url吗?但是 |
|
mineru 这个地方就不能引导性的 填写一个标准的 base URL地址吗?让用户自己去猜是不是不太好,就好比其他API接口 都有填写 这个API地址是多少 |
|
而且mineru的官方说明是: |
这个提示的失败我刚刚测试了,不管是用UNPDF 还是mineru 都是返回这样的失败 需要你们进一步排查 |
|
核心问题确认: 解决方案:需要修改OpenMAIC代码来适配官方API |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.







Summary
When configuring
https://mineru.netas the MinerU base URL, requests were incorrectly routed to the self-hosted code path (POST /file_parse), causing 413 errors. The PDF would then silently fall back tounpdfinstead of using MinerU cloud. This happens because the cloud API follows this structure, upload + async polling + ZIP download.Changes
lib/pdf/pdf-providers.ts— detectmineru.netbase URL and route to cloud v4 pathlib/pdf/mineru-cloud.ts— new file handling the full cloud v4 flow (upload → poll → ZIP parse)lib/pdf/mineru-parser.ts— new file normalizing MinerU output intoParsedPdfContent, shared by both self-hosted and cloud pathslib/pdf/types.ts— addedmineruModelVersionfield toPDFParserConfigto support switching betweenvlmandpipelinemodel versionsType of Change
Verification
Steps to reproduce the tests:
https://mineru.netwith a valid API tokenProof
Before
After
What you personally verified:
https://mineru.netcorrectly routes to cloud v4tsc --noEmitpasses cleanlyChecklist