Skip to content

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

refactor: rename environment variable from MINERU_BACKEND to MINERU_MODEL_SOURCE

myhloli81554804334e
diff --git a/mineru/cli/client.py b/mineru/cli/client.py
index 3494b827..92640f34 100644
--- a/mineru/cli/client.py
+++ b/mineru/cli/client.py
@@ -151,7 +151,7 @@ def main(input_path, output_dir, backend, lang, server_url, start_page_id, end_p
if os.getenv('MINERU_VIRTUAL_VRAM_SIZE', None) is None:
os.environ['MINERU_VIRTUAL_VRAM_SIZE']= str(get_virtual_vram_size())
- if os.getenv('MINERU_BACKEND', None) is None:
+ if os.getenv('MINERU_MODEL_SOURCE', None) is None:
os.environ['MINERU_MODEL_SOURCE'] = model_source
os.makedirs(output_dir, exist_ok=True)