Compare commits

...

1 Commits

Author SHA1 Message Date
Dustin Healy
dcd943b370 fix: add missing appConfig reference that was causing error on upload as text OCR path 2025-08-28 23:27:31 -07:00

View File

@@ -605,7 +605,11 @@ const processAgentFileUpload = async ({ req, res, metadata }) => {
const { handleFileUpload: uploadOCR } = getStrategyFunctions(
appConfig?.ocr?.strategy ?? FileSources.mistral_ocr,
);
const { text, bytes, filepath: ocrFileURL } = await uploadOCR({ req, file, loadAuthValues });
const {
text,
bytes,
filepath: ocrFileURL,
} = await uploadOCR({ req, file, loadAuthValues, appConfig });
return await createTextFile({ text, bytes, filepath: ocrFileURL });
}