LibreChat/packages
Danny Avila 365a0dc0f6
🩺 refactor: Surface Descriptive OCR Error Messages to Client (#12344)
* fix: pass along error message when OCR fails

Right now, if OCR fails, it just says "Error processing file" which
isn't very helpful.

The `error.message` does has helpful information in it, but our
filter wasn't including the right case to pass it along. Now it does!

* fix: extract shared upload error filter, apply to images route

The 'Unable to extract text from' error was only allowlisted in the
files route but not the images route, which also calls
processAgentFileUpload. Extract the duplicated error filter logic
into a shared resolveUploadErrorMessage utility in packages/api so
both routes stay in sync.

---------

Co-authored-by: Dan Lew <daniel@mightyacorn.com>
2026-03-20 17:10:25 -04:00
..
api 🩺 refactor: Surface Descriptive OCR Error Messages to Client (#12344) 2026-03-20 17:10:25 -04:00
client 📦 chore: Bump @dicebear dependencies to v9.4.1 (#12315) 2026-03-19 16:44:38 -04:00
data-provider 📖 feat: Add Native ODT Document Parser Support (#12303) 2026-03-19 15:49:52 -04:00
data-schemas v0.8.4-rc1 (#12285) 2026-03-17 16:08:48 -04:00