Skip to content

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

feat: add effort parameter to API server for enhanced OCR processing control

myhloli6602196426eb
diff --git a/mineru/kit/commands/api_server.py b/mineru/kit/commands/api_server.py
index 8d270991..3406f14e 100644
--- a/mineru/kit/commands/api_server.py
+++ b/mineru/kit/commands/api_server.py
@@ -41,6 +41,7 @@ def api_server_cmd(
max_wait: int = 600,
language: str = "ch",
ocr_mode: Literal["auto", "txt", "ocr"] = "auto",
+ effort: Literal["medium", "high"] = "medium",
disable_table: bool = False,
disable_formula: bool = False,
disable_image_analysis: bool = False,
@@ -68,6 +69,8 @@ def api_server_cmd(
language,
"--ocr-mode",
ocr_mode,
+ "--effort",
+ effort,
*(["--tier", effective_tier] if effective_tier else []),
*(["--upload-dir", upload_dir] if upload_dir else []),
*(["--backend", backend] if backend else []),