修复mineru部署的backend选项

This commit is contained in:
xunbu
2025-11-04 20:18:57 +08:00
parent 2a766e82bd
commit 5a72601928
4 changed files with 109 additions and 103 deletions

View File

@@ -429,7 +429,7 @@ class MarkdownWorkflowParams(BaseWorkflowParams):
"http://127.0.0.1:8000",
description="[仅当 convert_engine='mineru_deploy'] 本地部署的 MinerU 服务地址。",
)
mineru_deploy_backend: Literal["pipeline", "vlm"] = Field(
mineru_deploy_backend: Literal["pipeline", "transformers", "mlx-engine", "vllm-engine", "vllm-async-engine"] = Field(
"pipeline",
description="[仅当 convert_engine='mineru_deploy'] 本地部署的 MinerU 服务使用的后端。",
)

View File

@@ -18,7 +18,7 @@ class ConverterMineruDeployConfig(X2MarkdownConverterConfig):
base_url: str = "http://127.0.0.1:8000"
output_dir: str = "./output" # 覆盖默认值 ./output
# lang_list: list[str] | None = None
backend: Literal["pipeline", "vlm"] = "pipeline"
backend: Literal["pipeline", "transformers", "mlx-engine", "vllm-engine", "vllm-async-engine"] = "pipeline"
# parse_method: str = "auto"
formula_enable: bool = True
# table_enable: bool = True

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long