feat(db): write a periodic heartbeat to keep the database activeh - #18
Merged
Merged
Conversation
Uploads are no longer PDF-only. The format now comes from the first bytes: PDF, XML, JPEG, PNG, WebP or HEIC, and is kept as the file's extension. - XML e-invoices (Chile's DTE, Mexico's CFDI, UBL...) are parsed with defusedxml and DTDs forbidden, capped at 2 MB, stripped of signatures and base64 blobs, and sent to the LLM as text. - Photos are refused above 60 megapixels, turned upright, shrunk to 2048 px and re-encoded as JPEG, which drops every metadata block, GPS location included, before the LLM's vision reads them. - Scanned PDFs, and PDFs whose pages are mostly scans, used to fail. They are now sent whole to the LLM (through Gemini's Files API when larger than 14 MB). An XML file or a photo counts as one page, on every plan. Providers gain extract_file(); results carry their source. The upload texts, FAQ, terms, privacy policy and error translations follow in English and Spanish.
… image or XML The site still said "PDF" everywhere although it now accepts images and XML e-invoices, and the new texts called images "photos". Every upload is now a "document", and the places that explain what one is list the three kinds: PDF, image or XML. PDF stays only where a limit is specific to PDFs (pages per PDF). This covers the page title and description, hero, steps, features, security, FAQ, pricing limits, sign-in panels, dashboard, drop zone, terms, privacy policy and admin, in English and Spanish, plus the API messages about unsupported types and documents per upload, the LLM prompt and the README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.