Add OpenAI fallback for Aadhaar extraction
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 32s
This commit is contained in:
@@ -211,7 +211,9 @@ class GuestDocuments(
|
||||
val imageUrl =
|
||||
"${aiBaseUrl}/properties/$propertyId/guests/$guestId/documents/${document.id}/file?token=$token"
|
||||
|
||||
val extraction = extractionService.extractAndApply(imageUrl, document, propertyId)
|
||||
val publicImageUrl =
|
||||
"${publicBaseUrl.trimEnd('/')}/properties/$propertyId/guests/$guestId/documents/${document.id}/file?token=$token"
|
||||
val extraction = extractionService.extractAndApply(imageUrl, publicImageUrl, document, propertyId)
|
||||
val results = extraction.results
|
||||
|
||||
document.extractedData = objectMapper.writeValueAsString(results)
|
||||
|
||||
Reference in New Issue
Block a user