fix: add missing appConfig reference that was causing error on upload as text OCR path

This commit is contained in:
Dustin Healy 2025-08-28 23:27:31 -07:00
parent 62315be197
commit dcd943b370

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 });
}