mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-30 12:37:28 +08:00
## Summary - route hosted MinerU.Net and PaddleOCR.Net provider names to their existing Go drivers - add regression coverage for loading the hosted OCR provider configs through ProviderManager ## What changed - Added canonical provider-name aliases for the hosted OCR provider display names. - Covered both bundled configs with a focused provider-manager test. ## Why The hosted provider configs use display names with `.Net`, while model factory dispatch lowercases the provider name. Without aliases, those configs fall through to `DummyModel` instead of using the existing MinerU and PaddleOCR drivers. --------- Co-authored-by: Jin Hai <haijin.chn@gmail.com>
34 lines
543 B
JSON
34 lines
543 B
JSON
{
|
|
"name": "PaddleOCR.Net",
|
|
"url": {
|
|
"default": "https://paddleocr.aistudio-app.com/api"
|
|
},
|
|
"url_suffix": {
|
|
"ocr": "v2/ocr/jobs"
|
|
},
|
|
"class": "paddleocr.net",
|
|
"models": [
|
|
{
|
|
"name": "PaddleOCR-VL-1.5",
|
|
"max_tokens": 16384,
|
|
"model_types": [
|
|
"ocr"
|
|
]
|
|
},
|
|
{
|
|
"name": "PP-OCRv5",
|
|
"max_tokens": 16384,
|
|
"model_types": [
|
|
"ocr"
|
|
]
|
|
},
|
|
{
|
|
"name": "PP-StructureV3",
|
|
"max_tokens": 16384,
|
|
"model_types": [
|
|
"ocr"
|
|
]
|
|
}
|
|
]
|
|
}
|