feat: add async worker queues and retry controls
This commit is contained in:
@@ -25,6 +25,7 @@ from leaudit.services.evaluation_service import EvaluationService
|
||||
from leaudit.services.extraction_service import ExtractionService
|
||||
from leaudit.services.rescue_service import RescueService
|
||||
|
||||
from fastapi_admin.config import LEAUDIT_OCR_VLM_CONCURRENCY
|
||||
from fastapi_modules.fastapi_leaudit.leaudit_bridge.client_factory import (
|
||||
create_llm_client,
|
||||
create_ocr_client,
|
||||
@@ -118,7 +119,11 @@ class AuditServiceFactory:
|
||||
vlm_client=vlm_client,
|
||||
force_rules_path=rules_path,
|
||||
)
|
||||
ocr_client = BridgeOCRClient(adapter, vlm_client=vlm_client)
|
||||
ocr_client = BridgeOCRClient(
|
||||
adapter,
|
||||
vlm_client=vlm_client,
|
||||
vlm_concurrency=LEAUDIT_OCR_VLM_CONCURRENCY,
|
||||
)
|
||||
normalization_service = DocNormalizationService(ocr_client)
|
||||
audit_services = AuditServices(
|
||||
llm_client=llm_client,
|
||||
|
||||
Reference in New Issue
Block a user