Skip to content

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

fix: prevent server URL assignment for non-client backends in VLM processing

myhloli86391acf2890
diff --git a/mineru/cli/common.py b/mineru/cli/common.py
index 86eb4b3b..7ec73ce9 100644
--- a/mineru/cli/common.py
+++ b/mineru/cli/common.py
@@ -229,6 +229,8 @@ async def _async_process_vlm(
"""异步处理VLM后端逻辑"""
parse_method = "vlm"
f_draw_span_bbox = False
+ if not backend.endswith("client"):
+ server_url = None
for idx, pdf_bytes in enumerate(pdf_bytes_list):
pdf_file_name = pdf_file_names[idx]
@@ -267,6 +269,8 @@ def _process_vlm(
"""同步处理VLM后端逻辑"""
parse_method = "vlm"
f_draw_span_bbox = False
+ if not backend.endswith("client"):
+ server_url = None
for idx, pdf_bytes in enumerate(pdf_bytes_list):
pdf_file_name = pdf_file_names[idx]