Ok, restart implementing this with just azure

[ci skip]
This commit is contained in:
shamoon
2025-04-18 11:38:36 -07:00
parent feb320cae9
commit 811bd66088
10 changed files with 253 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
from django.conf import settings
from django.core.checks import Error
from django.core.checks import register
@register()
def check_remote_parser_configured(app_configs, **kwargs):
if settings.REMOTE_OCR_ENGINE == "azureai" and not settings.REMOTE_OCR_ENDPOINT:
return [
Error(
"Azure AI remote parser requires endpoint to be configured.",
),
]
return []