[Plugin Request]: minerU插件需要升级 ,minerU2本地部署适配问题 #176

Closed
opened 2026-02-22 17:21:09 -05:00 by yindo · 2 comments
Owner

Originally created by @lichangfeng-1 on GitHub (Jul 19, 2025).

Plugin Name

mineu2

Function Description

现有的插件存在api对接失败的问题
我是本地部署的 dify 和 minerU2,
dify的现有的0.2 版本 minerU插件信息:
PARSE FILE:
输入:
{
"file": {
"dify_model_identity": "dify__file",
"id": null,
"tenant_id": "739f5fff-6xxxxxxxxxxxxxx42",
"type": "document",
"transfer_method": "local_file",
"remote_url": "xxxxx",[这个地址可以在局域网打开,是 一个我上传的pdf文件]
"filename": "3.行业应用篇-DeepSeek入门宝典.pdf",
"extension": ".pdf",
"mime_type": "application/pdf",
"size": 1325796,
"url": "xxxxxx"
}
}
输出:
{
"text": "Failed to parse file. result: {"detail":[{"type":"missing","loc":["body","files"],"msg":"Field required","input":null}]}",
"files": [],
"json": [
{
"data": []
}
]
}

minerU2 后台日志:
INFO:"POST /file_parse?parse_method=auto&return_layout=False&return_info=False&return_content_list=True&return_images=True HTTP/1.1" 422 Unprocessable Entity

Image

Official Website URL

https://github.com/opendatalab/mineru

Originally created by @lichangfeng-1 on GitHub (Jul 19, 2025). ### Plugin Name mineu2 ### Function Description 现有的插件存在api对接失败的问题 我是本地部署的 dify 和 minerU2, dify的现有的0.2 版本 minerU插件信息: PARSE FILE: 输入: { "file": { "dify_model_identity": "__dify__file__", "id": null, "tenant_id": "739f5fff-6xxxxxxxxxxxxxx42", "type": "document", "transfer_method": "local_file", "remote_url": "xxxxx",[这个地址可以在局域网打开,是 一个我上传的pdf文件] "filename": "3.行业应用篇-DeepSeek入门宝典.pdf", "extension": ".pdf", "mime_type": "application/pdf", "size": 1325796, "url": "xxxxxx" } } 输出: { "text": "Failed to parse file. result: {\"detail\":[{\"type\":\"missing\",\"loc\":[\"body\",\"files\"],\"msg\":\"Field required\",\"input\":null}]}", "files": [], "json": [ { "data": [] } ] } minerU2 后台日志: INFO:"POST /file_parse?parse_method=auto&return_layout=False&return_info=False&return_content_list=True&return_images=True HTTP/1.1" 422 Unprocessable Entity <img width="861" height="387" alt="Image" src="https://github.com/user-attachments/assets/443c676e-b661-4de2-929a-9e5d371a9fd1" /> ### Official Website URL https://github.com/opendatalab/mineru
yindo added the enhancement label 2026-02-22 17:21:09 -05:00
yindo closed this issue 2026-02-22 17:21:13 -05:00
Author
Owner

@xxxlu0714 commented on GitHub (Jul 21, 2025):

同一个问题 Failed to parse file. result: {"detail":[{"type":"missing","loc":["body","files"],"msg":"Field required","input":null}]}

@xxxlu0714 commented on GitHub (Jul 21, 2025): 同一个问题 Failed to parse file. result: {"detail":[{"type":"missing","loc":["body","files"],"msg":"Field required","input":null}]}
Author
Owner

@ElvisBluetooth commented on GitHub (Feb 3, 2026):

"formula_enable": tool_parameters.get("formula_enable", True),
"table_enable": tool_parameters.get("table_enable", True),
这两个参数有问题,和yaml定义的不一样。

  • name: enable_formula
    type: boolean
    required: false
    default: true
    label:
    zh_Hans: 开启公式识别
    en_US: Enable formula recognition
    ja_JP: 数式認識を有効にする
    human_description:
    zh_Hans: (用于官方API和本地部署v2版本)是否开启公式识别
    en_US: (For official API and local deployment v2) Whether to enable formula recognition
    ja_JP: (公式API用とローカルデプロイメントv2用)数式認識を有効にするかどうか
    llm_description: (For official API and local deployment v2) Whether to enable formula recognition
    form: form

  • name: enable_table
    type: boolean
    required: false
    default: true
    label:
    zh_Hans: 开启表格识别
    en_US: Enable table recognition
    ja_JP: 表認識を有効にする
    human_description:
    zh_Hans: (用于官方API和本地部署v2版本)是否开启表格识别
    en_US: (For official API and local deployment v2) Whether to enable table recognition
    ja_JP: (公式API用とローカルデプロイメントv2用)表認識を有効にするかどうか
    llm_description: (For official API and local deployment v2) Whether to enable table recognition
    form: form

@ElvisBluetooth commented on GitHub (Feb 3, 2026): "formula_enable": tool_parameters.get("formula_enable", True), "table_enable": tool_parameters.get("table_enable", True), 这两个参数有问题,和yaml定义的不一样。 - name: enable_formula type: boolean required: false default: true label: zh_Hans: 开启公式识别 en_US: Enable formula recognition ja_JP: 数式認識を有効にする human_description: zh_Hans: (用于官方API和本地部署v2版本)是否开启公式识别 en_US: (For official API and local deployment v2) Whether to enable formula recognition ja_JP: (公式API用とローカルデプロイメントv2用)数式認識を有効にするかどうか llm_description: (For official API and local deployment v2) Whether to enable formula recognition form: form - name: enable_table type: boolean required: false default: true label: zh_Hans: 开启表格识别 en_US: Enable table recognition ja_JP: 表認識を有効にする human_description: zh_Hans: (用于官方API和本地部署v2版本)是否开启表格识别 en_US: (For official API and local deployment v2) Whether to enable table recognition ja_JP: (公式API用とローカルデプロイメントv2用)表認識を有効にするかどうか llm_description: (For official API and local deployment v2) Whether to enable table recognition form: form
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugins#176