Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

feat: remove `PARSER_BACKENDS` constant from `mineru.parser` exports and update documentation

myhloli580a1758e979
diff --git a/docs/en/reference/changelog.md b/docs/en/reference/changelog.md
index 9446a262..258b4434 100644
--- a/docs/en/reference/changelog.md
+++ b/docs/en/reference/changelog.md
@@ -5,6 +5,7 @@ This document records the release history of MinerU, including major capability
## Unreleased
- Breaking change: removed the `--backend` option from `mineru-kit parse` (introduced during the 4.0 alphas). The option only inferred a tier and had no independent effect, so use `--tier` instead: `pipeline` → `--tier basic`; `vlm-engine`, `vlm-auto-engine`, and `vlm-http-client` → `--tier advanced`; `hybrid-engine` and `hybrid-auto-engine` → `--tier standard` (or omit the option); `flash` → `--tier flash`. Parsing with a remote VLM service is configured through the VLM server settings and is unrelated to this option.
+- Breaking change: removed the `PARSER_BACKENDS` constant from the `mineru.parser` exports (present in the 4.0 release). Backends are derived from tiers and are no longer a public choice; call `mineru.parser.backend_for_tier(tier)` if you need a tier's implementation name.
## 4.0
diff --git a/docs/next/sdk/parser.md b/docs/next/sdk/parser.md
index ddf4c220..92081b6c 100644
--- a/docs/next/sdk/parser.md
+++ b/docs/next/sdk/parser.md
@@ -38,7 +38,6 @@
| `ParseResult` | dataclass | 解析结果对象。 |
| `MinerUApiParser` | class | API-backed parser,详见 [API-backed Parser](api-parser.md)。 |
| `backend_for_tier` | function | 返回指定 tier 使用的 parser backend,tier 自身决定质量档位。 |
-| `PARSER_BACKENDS` | 常量 | 受支持的 backend 名称元组。 |
| `MIDDLE_JSON_SCHEMA_VERSION` | 常量 | 当前 Middle JSON schema 版本(`"2.0"`)。 |
## `MinerUParser`
diff --git a/docs/zh/reference/changelog.md b/docs/zh/reference/changelog.md
index 17d03c51..5e9a74f0 100644
--- a/docs/zh/reference/changelog.md
+++ b/docs/zh/reference/changelog.md
@@ -5,6 +5,7 @@
## 未发布
- 破坏性变更:移除 `mineru-kit parse` 的 `--backend` 参数(该参数在 4.0 alpha 阶段引入)。它仅用于推断 tier,没有独立作用,请改用 `--tier`:`pipeline` → `--tier basic`;`vlm-engine`、`vlm-auto-engine`、`vlm-http-client` → `--tier advanced`;`hybrid-engine`、`hybrid-auto-engine` → `--tier standard`(或省略该参数);`flash` → `--tier flash`。使用远程 VLM 服务由 VLM 服务配置表达,与该参数无关。
+- 破坏性变更:移除 `mineru.parser` 公开导出中的 `PARSER_BACKENDS` 常量(4.0 正式版包含该导出)。backend 由 tier 派生,不再作为公开选择;如需某 tier 的实现名称,请调用 `mineru.parser.backend_for_tier(tier)`。
## 4.0