Skip to content

fix: ocr document validation#116

Open
Efe-Cal wants to merge 1 commit into
hackclub:mainfrom
Efe-Cal:main
Open

fix: ocr document validation#116
Efe-Cal wants to merge 1 commit into
hackclub:mainfrom
Efe-Cal:main

Conversation

@Efe-Cal
Copy link
Copy Markdown
Contributor

@Efe-Cal Efe-Cal commented May 31, 2026

This pull request updates the document validation logic in src/routes/proxy/v1/ocr.ts to allow support for base64-encoded data URLs in addition to HTTPS URLs. This change broadens the types of document sources that can be processed by the OCR proxy.

Validation logic improvements:

  • Updated the validateDocument function to accept base64-encoded image and document data URLs (in addition to HTTPS URLs) for both image_url and document_url types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant