Refa: better UX for adding OCR model (#12034)

### What problem does this PR solve?

Better UX for adding OCR model.

### Type of change

- [x] Refactoring
This commit is contained in:
Yongteng Lei
2025-12-19 11:34:21 +08:00
committed by GitHub
parent f8fd1ea7e1
commit 2844700dc4
4 changed files with 46 additions and 11 deletions

View File

@ -1110,6 +1110,9 @@ Example: Virtual Hosted Style`,
mcp: 'MCP',
mineru: {
modelNameRequired: 'Model name is required',
apiServerRequired: 'MinerU API Server Configuration is required',
serverUrlBackendLimit:
'MinerU Server URL Address is only available for the HTTP client backend',
apiserver: 'MinerU API Server Configuration',
outputDir: 'MinerU Output Directory Path',
backend: 'MinerU Processing Backend Type',
@ -1121,6 +1124,11 @@ Example: Virtual Hosted Style`,
vlmTransformers: 'Vision Language Model with Transformers',
vlmVllmEngine: 'Vision Language Model with vLLM Engine',
vlmHttpClient: 'Vision Language Model via HTTP Client',
vlmMlxEngine: 'Vision Language Model with MLX Engine',
vlmVllmAsyncEngine:
'Vision Language Model with vLLM Async Engine (Experimental)',
vlmLmdeployEngine:
'Vision Language Model with LMDeploy Engine (Experimental)',
},
},
},

View File

@ -959,6 +959,8 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
mcp: 'MCP',
mineru: {
modelNameRequired: '模型名称为必填项',
apiServerRequired: 'MinerU API服务器配置为必填项',
serverUrlBackendLimit: '仅在backend 为vlm-http-client 时可填写',
apiserver: 'MinerU API服务器配置',
outputDir: 'MinerU输出目录路径',
backend: 'MinerU处理后端类型',
@ -970,6 +972,9 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
vlmTransformers: '基于Transformers的视觉语言模型',
vlmVllmEngine: '基于vLLM引擎的视觉语言模型',
vlmHttpClient: '通过HTTP客户端连接的视觉语言模型',
vlmMlxEngine: '基于MLX引擎的视觉语言模型',
vlmVllmAsyncEngine: '基于vLLM异步引擎的视觉语言模型实验性',
vlmLmdeployEngine: '基于LMDeploy引擎的视觉语言模型实验性',
},
},
},