From dcd943b370f9c3079e6777be99399ec71635d473 Mon Sep 17 00:00:00 2001 From: Dustin Healy Date: Thu, 28 Aug 2025 23:27:31 -0700 Subject: [PATCH] fix: add missing appConfig reference that was causing error on upload as text OCR path --- api/server/services/Files/process.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/server/services/Files/process.js b/api/server/services/Files/process.js index d8061fb68e..345361a71d 100644 --- a/api/server/services/Files/process.js +++ b/api/server/services/Files/process.js @@ -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 }); }