Skip to content

fix: ocr document validation#116

Merged
skyfallwastaken merged 2 commits into
hackclub:mainfrom
Efe-Cal:main
Jun 4, 2026
Merged

fix: ocr document validation#116
skyfallwastaken merged 2 commits into
hackclub:mainfrom
Efe-Cal:main

Conversation

@Efe-Cal

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

Copy link
Copy Markdown
Contributor

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.

@skyfallwastaken skyfallwastaken merged commit 7c1f145 into hackclub:main Jun 4, 2026
2 of 3 checks passed
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.

2 participants