Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
refactor: simplify backend choices in client.py
myhloli726e0de6fe3f
diff --git a/mineru/cli/client.py b/mineru/cli/client.pyindex 89840e5a..3582848a 100644--- a/mineru/cli/client.py+++ b/mineru/cli/client.py@@ -13,22 +13,6 @@ from ..version import __version__from .common import do_parse, read_fn, pdf_suffixes, image_suffixes-backends = [- 'pipeline',- 'vlm-transformers',- 'vlm-vllm-engine',- 'vlm-lmdeploy-engine',- 'vlm-http-client',- 'hybrid-transformers',- 'hybrid-vllm-engine',- 'hybrid-lmdeploy-engine',- 'hybrid-http-client',- 'vlm-auto-engine',- 'hybrid-auto-engine',-]-if is_mac_os_version_supported():- backends.append("vlm-mlx-engine")-@click.command(context_settings=dict(ignore_unknown_options=True, allow_extra_args=True))@click.pass_context@click.version_option(__version__,@@ -69,7 +53,7 @@ if is_mac_os_version_supported():'-b','--backend','backend',- type=click.Choice(backends),+ type=click.Choice(['pipeline', 'vlm-http-client', 'hybrid-http-client', 'vlm-auto-engine', 'hybrid-auto-engine',]),help="""\bthe backend for parsing pdf:pipeline: More general.